diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-05-01 13:28:58 +0100 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-05-01 13:28:58 +0100 |
| commit | 1bc1ebefb87e2ea3d29780f54f32bf95b24a6d80 (patch) | |
| tree | b00fda04806f17e9a84c515cdbf561ef4fca6e90 /src/main/java/darkknight/jewelrycraft/block/BlockShadowHand.java | |
| parent | c19aeae6ae51ca9019f8051f83ab7eb52f4a1608 (diff) | |
- Made the ritual even better
- Fixed a type where the "Thieving Gloves" were named "Thiefing Gloves"
- Fixed the world from crashing when entering one
- Changed Flaming Soul Curse to set players on fire when they attack something, rather than randomly
- Player no longer gets blinded when the ritual starts
- The ritual now creates a sphere of darkness around it
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/block/BlockShadowHand.java')
| -rw-r--r-- | src/main/java/darkknight/jewelrycraft/block/BlockShadowHand.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/block/BlockShadowHand.java b/src/main/java/darkknight/jewelrycraft/block/BlockShadowHand.java index 45a260f..2d488ca 100644 --- a/src/main/java/darkknight/jewelrycraft/block/BlockShadowHand.java +++ b/src/main/java/darkknight/jewelrycraft/block/BlockShadowHand.java @@ -15,7 +15,6 @@ import darkknight.jewelrycraft.tileentity.TileEntityShadowHand; public class BlockShadowHand extends BlockContainer { - /** * @param material */ @@ -104,10 +103,12 @@ public class BlockShadowHand extends BlockContainer @Override public void breakBlock(World world, int i, int j, int k, Block block, int par6) { - TileEntityShadowHand te = (TileEntityShadowHand)world.getTileEntity(i, j, k); - if (te != null && te.getHeldItemStack() != null){ - dropItem(te.getWorldObj(), te.xCoord, te.yCoord, te.zCoord, te.getHeldItemStack()); - world.removeTileEntity(i, j, k); + if (world.getTileEntity(i, j, k) instanceof TileEntityShadowHand){ + TileEntityShadowHand te = (TileEntityShadowHand)world.getTileEntity(i, j, k); + if (te != null && te.getHeldItemStack() != null){ + dropItem(te.getWorldObj(), te.xCoord, te.yCoord, te.zCoord, te.getHeldItemStack()); + world.removeTileEntity(i, j, k); + } } super.breakBlock(world, i, j, k, block, par6); } |
