summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/block/BlockSmelter.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-16 18:00:50 +0200
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2013-12-16 18:00:50 +0200
commit5ccd234e08724dfb90e5ad416771d87f591bc4fe (patch)
tree163694d8d21743826a4b383e4d6ef0120a27ec73 /common/darkknight/jewelrycraft/block/BlockSmelter.java
parenta790a85e5dd59fd4e320c5445a655c503de6c702 (diff)
stuff with rings and stuff
Diffstat (limited to 'common/darkknight/jewelrycraft/block/BlockSmelter.java')
-rw-r--r--common/darkknight/jewelrycraft/block/BlockSmelter.java20
1 files changed, 4 insertions, 16 deletions
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);
}