Update to latest commit(Master)

This commit is contained in:
Dimmerworld 2017-10-05 02:38:11 +11:00 committed by drcrazy
parent c8b6edd390
commit c651363b73
12 changed files with 174 additions and 135 deletions

View file

@ -51,6 +51,8 @@ public class PacketSetRecipe implements INetworkPacket<PacketSetRecipe> {
} else {
this.recipe = recipe.getRegistryName();
}
System.out.println(this.recipe);
this.custom = custom;
}
@ -74,6 +76,7 @@ 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);
}