Merge pull request #132 from KorDum/bugfix/issue-18

Fix #18
This commit is contained in:
Nedelosk authored and GitHub committed 2017-06-18 13:56:23 +02:00
commit 31caf3c4c3
1 file changed
+6
@@ -21,6 +21,7 @@ import cpw.mods.fml.relauncher.Side;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.ICrafting;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
@@ -228,6 +229,11 @@ public class ContainerCraftGUI extends Container {
int index = action.getShort("i");
int slotNumber = action.getShort("n");
getOrCreateSlot(InventoryType.values()[type % 4], index, slotNumber);
for (Object crafterObject : crafters) {
ICrafting crafter = (ICrafting) crafterObject;
crafter.sendContainerAndContentsToPlayer(this, getInventory());
}
}
}