Auto format code

This commit is contained in:
modmuss50 2017-06-28 20:54:12 +01:00
parent c0aab7f37a
commit 774fec221e
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
65 changed files with 100 additions and 125 deletions

View file

@ -22,7 +22,7 @@ public class PacketSetRecipe implements INetworkPacket<PacketSetRecipe> {
public PacketSetRecipe(TileAutoCraftingTable tile, IRecipe recipe, boolean custom) {
this.pos = tile.getPos();
if(recipe == null){
if (recipe == null) {
this.recipe = new ResourceLocation("");
} else {
this.recipe = recipe.getRegistryName();
@ -51,8 +51,9 @@ 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){
TileEntity tileEntity = context.getServerHandler().player.world.getTileEntity(message.pos);
;
if (tileEntity instanceof TileAutoCraftingTable) {
((TileAutoCraftingTable) tileEntity).setCurrentRecipe(message.recipe, message.custom);
}
}