mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
parent
bdc6f179cf
commit
589d94894e
1 changed files with 10 additions and 8 deletions
|
@ -62,14 +62,16 @@ public class GuiGiantChest extends GuiContainer{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void actionPerformed(GuiButton button) throws IOException{
|
protected void actionPerformed(GuiButton button) throws IOException{
|
||||||
NBTTagCompound compound = new NBTTagCompound();
|
if(button.id >= 0 && button.id < 3){
|
||||||
compound.setInteger("X", this.chest.getPos().getX());
|
NBTTagCompound compound = new NBTTagCompound();
|
||||||
compound.setInteger("Y", this.chest.getPos().getY());
|
compound.setInteger("X", this.chest.getPos().getX());
|
||||||
compound.setInteger("Z", this.chest.getPos().getZ());
|
compound.setInteger("Y", this.chest.getPos().getY());
|
||||||
compound.setInteger("PlayerID", Minecraft.getMinecraft().thePlayer.getEntityId());
|
compound.setInteger("Z", this.chest.getPos().getZ());
|
||||||
compound.setInteger("WorldID", this.chest.getWorld().provider.getDimension());
|
compound.setInteger("PlayerID", Minecraft.getMinecraft().thePlayer.getEntityId());
|
||||||
compound.setInteger("ButtonID", button.id);
|
compound.setInteger("WorldID", this.chest.getWorld().provider.getDimension());
|
||||||
PacketHandler.theNetwork.sendToServer(new PacketClientToServer(compound, PacketHandler.GUI_BUTTON_TO_TILE_HANDLER));
|
compound.setInteger("ButtonID", button.id);
|
||||||
|
PacketHandler.theNetwork.sendToServer(new PacketClientToServer(compound, PacketHandler.GUI_BUTTON_TO_TILE_HANDLER));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue