Проблемка

Версия Minecraft
1.7.10
29
1
Прошу помочь.
Бьёт ошибку "dropItem" The method dropItem(Item, int) in the type Entity is not applicable for the arguments (ItemStack, boolean)
Кто может помочь?
Java:
      if (slot1 != null) {
        net.minecraft.item.Item equip = slot1.getItem();
         if (equip == WeisItems.smallRucksack) {
           for (int i = 18; i < 36; i++) {
    
            player.dropItem(player.inventory.getStackInSlot(i), true);
            player.inventory.setInventorySlotContents(i, null);
          }
        } else if (equip == WeisItems.mediumRucksack) {
           for (int i = 27; i < 36; i++) {
           player.dropItem(player.inventory.getStackInSlot(i), true);
             player.inventory.setInventorySlotContents(i, null);
          }
         } else if (equip != WeisItems.bigRucksack) {}
       } else {
         for (int i = 9; i < 36; i++) {
           player.dropItem(player.inventory.getStackInSlot(i), true);
          player.inventory.setInventorySlotContents(i, null);
        }
       }
     }
   }
 
Сверху