mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-26 06:53:26 +00:00
Don't count armor slots when checking if stacks can fit in the player's inventory
This commit is contained in:
1 parent
2bc7eb361b
commit
c0d1a01c88
1 file changed
+2
-1
@@ -2,6 +2,7 @@ package codechicken.nei;
|
||||
|
||||
import codechicken.core.CommonUtils;
|
||||
import codechicken.core.ServerUtils;
|
||||
import codechicken.lib.inventory.InventoryRange;
|
||||
import codechicken.lib.inventory.InventoryUtils;
|
||||
import codechicken.lib.packet.PacketCustom;
|
||||
import net.minecraft.command.ICommandSender;
|
||||
@@ -104,7 +105,7 @@ public class NEIServerUtils
|
||||
}
|
||||
|
||||
public static boolean canItemFitInInventory(EntityPlayer player, ItemStack itemstack) {
|
||||
return InventoryUtils.insertItem(player.inventory, itemstack, true) == 0;
|
||||
return InventoryUtils.insertItem(new InventoryRange(player.inventory, 0, 36), itemstack, true) == 0;
|
||||
}
|
||||
|
||||
public static void sendNotice(ICommandSender sender, IChatComponent msg, String permission) {
|
||||
|
||||
Reference in new issue
Block a user