From 5ccd234e08724dfb90e5ad416771d87f591bc4fe Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Mon, 16 Dec 2013 18:00:50 +0200 Subject: stuff with rings and stuff --- .../darkknight/jewelrycraft/block/BlockSmelter.java | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'common/darkknight/jewelrycraft/block/BlockSmelter.java') diff --git a/common/darkknight/jewelrycraft/block/BlockSmelter.java b/common/darkknight/jewelrycraft/block/BlockSmelter.java index b066284..c9cf575 100644 --- a/common/darkknight/jewelrycraft/block/BlockSmelter.java +++ b/common/darkknight/jewelrycraft/block/BlockSmelter.java @@ -41,10 +41,7 @@ public class BlockSmelter extends BlockContainer @Override public void onBlockDestroyedByPlayer(World world, int i, int j, int k, int par5) - { - if (world.isRemote) - return; - + { TileEntitySmelter te = (TileEntitySmelter) world.getBlockTileEntity(i, j, k); if (te != null) { @@ -77,10 +74,7 @@ public class BlockSmelter extends BlockContainer @Override public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer entityPlayer, int par6, float par7, float par8, float par9) - { - if (world.isRemote) - return true; - + { TileEntitySmelter te = (TileEntitySmelter) world.getBlockTileEntity(i, j, k); ItemStack item = entityPlayer.inventory.getCurrentItem(); if (te != null && !world.isRemote) @@ -111,10 +105,7 @@ public class BlockSmelter extends BlockContainer @Override public void onBlockClicked(World world, int i, int j, int k, EntityPlayer player) - { - if (world.isRemote) - return; - + { TileEntitySmelter te = (TileEntitySmelter) world.getBlockTileEntity(i, j, k); TileEntityMolder me = null; if (world.getBlockMetadata(i, j, k) == 0) @@ -164,10 +155,7 @@ public class BlockSmelter extends BlockContainer @Override public void onBlockPlacedBy(World world, int i, int j, int k, EntityLivingBase entityLiving, ItemStack par6ItemStack) - { - if (world.isRemote) - return; - + { int rotation = MathHelper.floor_double(entityLiving.rotationYaw * 4.0F / 360.0F + 0.5D) & 3; world.setBlockMetadataWithNotify(i, j, k, rotation, 2); } -- cgit v1.2.3