Maeyanie/BuildCraft — pull request #6 by mushroomhostage (2012-05-02 15:21:43+00:00)
Title: Fix automatic crafting table crash 

Fixes crashing when taking items from the automatic crafting table.

Place automatic crafting table, craft an item manually, take the result = crash:

java.lang.NoSuchMethodError: net.minecraft.server.ModLoader.takenFromCrafting(Lnet/minecraft/server/EntityPlayer;Lnet/minecraft/server/ItemStack;Lnet/minecraft/server/IInventory;)V
at buildcraft.core.CoreProxy.TakenFromCrafting(CoreProxy.java:84)
at buildcraft.factory.ContainerAutoWorkbench$SlotAutoCrafting.c(ContainerAutoWorkbench.java:207)
at net.minecraft.server.Container.clickItem(Container.java:211)
at buildcraft.factory.ContainerAutoWorkbench.clickItem(ContainerAutoWorkbench.java:76)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1181)
at net.minecraft.server.Packet102WindowClick.handle(SourceFile:28)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:234)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:121)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:556)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:453)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

There were some errors with EntityPlayer/EntityHuman in early MCPC builds: https://github.com/MinecraftPortCentral/CraftBukkit/commit/22cfd5f995d458db7f1b837972f27adf0d210758 - since fixed. This pull fixes the one remaining casting error I could find, and allows the automatic crafting table to function normally.