Some small tweaks to the auto crafting table, closes #1286

This commit is contained in:
modmuss50 2017-10-04 15:19:45 +01:00
parent 4e536718a3
commit a80409c138
2 changed files with 41 additions and 11 deletions

View file

@ -51,8 +51,6 @@ public class PacketSetRecipe implements INetworkPacket<PacketSetRecipe> {
} else {
this.recipe = recipe.getRegistryName();
}
System.out.println(this.recipe);
this.custom = custom;
}
@ -76,7 +74,6 @@ public class PacketSetRecipe implements INetworkPacket<PacketSetRecipe> {
@Override
public void processData(PacketSetRecipe message, MessageContext context) {
TileEntity tileEntity = context.getServerHandler().player.world.getTileEntity(message.pos);
;
if (tileEntity instanceof TileAutoCraftingTable) {
((TileAutoCraftingTable) tileEntity).setCurrentRecipe(message.recipe, message.custom);
}