Recoded idsu, closes #81

This commit is contained in:
modmuss50 2015-07-26 16:01:27 +01:00
parent f433aa706a
commit 5927eaca4c
11 changed files with 68 additions and 224 deletions

View file

@ -66,9 +66,6 @@ public class BlockIDSU extends BlockMachineBase {
public boolean onBlockActivated(World world, int x, int y, int z,
EntityPlayer player, int side, float hitX, float hitY, float hitZ)
{
if(FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER){
Core.packetPipeline.sendTo(IDSUManager.INSTANCE.getPacket(world), (EntityPlayerMP) player);
}
if (!player.isSneaking())
player.openGui(Core.INSTANCE, GuiHandler.idsuID, world, x, y,
z);
@ -80,7 +77,8 @@ public class BlockIDSU extends BlockMachineBase {
super.onBlockPlacedBy(world, x, y, z, player, itemstack);
TileEntity tile = world.getTileEntity(x, y, z);
if(tile instanceof TileIDSU){
((TileIDSU) tile).setFacing((short) world.getBlockMetadata(x, y, z));
}
((TileIDSU) tile).ownerUdid = player.getUniqueID().toString();
System.out.println(((TileIDSU) tile).ownerUdid);
}
}
}