Shtuff
This commit is contained in:
parent
8d2ab7aa7a
commit
90b34056c1
2 changed files with 1 additions and 4 deletions
|
@ -78,7 +78,6 @@ public class BlockTeleposer extends BlockContainer
|
||||||
@Override
|
@Override
|
||||||
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int idk, float what, float these, float are)
|
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();
|
ItemStack playerItem = player.getCurrentEquippedItem();
|
||||||
|
|
||||||
if (playerItem != null)
|
if (playerItem != null)
|
||||||
|
@ -169,8 +168,6 @@ public class BlockTeleposer extends BlockContainer
|
||||||
{
|
{
|
||||||
TileEntity tileEntityI = worldI.getTileEntity(xi, yi, zi);
|
TileEntity tileEntityI = worldI.getTileEntity(xi, yi, zi);
|
||||||
TileEntity tileEntityF = worldF.getTileEntity(xf, yf, zf);
|
TileEntity tileEntityF = worldF.getTileEntity(xf, yf, zf);
|
||||||
TileEntity tileI;
|
|
||||||
TileEntity tileF;
|
|
||||||
|
|
||||||
NBTTagCompound nbttag1 = new NBTTagCompound();
|
NBTTagCompound nbttag1 = new NBTTagCompound();
|
||||||
NBTTagCompound nbttag2 = new NBTTagCompound();
|
NBTTagCompound nbttag2 = new NBTTagCompound();
|
||||||
|
|
|
@ -94,7 +94,7 @@ public class TETeleposer extends TEInventory
|
||||||
int zf = focusItem.zCoord(focus);
|
int zf = focusItem.zCoord(focus);
|
||||||
World worldF = focusItem.getWorld(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 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 transportCount = 0;
|
||||||
int entityCount = 0;
|
int entityCount = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue