From 90b34056c108969aefe469b561acba5894f348b6 Mon Sep 17 00:00:00 2001 From: Arcaratus Date: Fri, 12 Jun 2015 15:11:56 -0400 Subject: [PATCH] Shtuff --- .../alchemicalWizardry/common/block/BlockTeleposer.java | 3 --- .../alchemicalWizardry/common/tileEntity/TETeleposer.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/block/BlockTeleposer.java b/src/main/java/WayofTime/alchemicalWizardry/common/block/BlockTeleposer.java index e969f1ba..de861321 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/block/BlockTeleposer.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/block/BlockTeleposer.java @@ -78,7 +78,6 @@ public class BlockTeleposer extends BlockContainer @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int idk, float what, float these, float are) { - TETeleposer tileEntity = (TETeleposer) world.getTileEntity(x, y, z); ItemStack playerItem = player.getCurrentEquippedItem(); if (playerItem != null) @@ -169,8 +168,6 @@ public class BlockTeleposer extends BlockContainer { TileEntity tileEntityI = worldI.getTileEntity(xi, yi, zi); TileEntity tileEntityF = worldF.getTileEntity(xf, yf, zf); - TileEntity tileI; - TileEntity tileF; NBTTagCompound nbttag1 = new NBTTagCompound(); NBTTagCompound nbttag2 = new NBTTagCompound(); diff --git a/src/main/java/WayofTime/alchemicalWizardry/common/tileEntity/TETeleposer.java b/src/main/java/WayofTime/alchemicalWizardry/common/tileEntity/TETeleposer.java index 1aacdfc5..57959fe8 100644 --- a/src/main/java/WayofTime/alchemicalWizardry/common/tileEntity/TETeleposer.java +++ b/src/main/java/WayofTime/alchemicalWizardry/common/tileEntity/TETeleposer.java @@ -94,7 +94,7 @@ public class TETeleposer extends TEInventory int zf = focusItem.zCoord(focus); World worldF = focusItem.getWorld(focus); int damage = (int) (0.5f * Math.sqrt((xCoord - xf) * (xCoord - xf) + (yCoord - yf + 1) * (yCoord - yf + 1) + (zCoord - zf) * (zCoord - zf))); - int focusLevel = ((TelepositionFocus) focusItem).getFocusLevel(); + int focusLevel = focusItem.getFocusLevel(); int transportCount = 0; int entityCount = 0;