mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
parent
bdc6f179cf
commit
589d94894e
1 changed files with 10 additions and 8 deletions
|
@ -62,6 +62,7 @@ public class GuiGiantChest extends GuiContainer{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void actionPerformed(GuiButton button) throws IOException{
|
protected void actionPerformed(GuiButton button) throws IOException{
|
||||||
|
if(button.id >= 0 && button.id < 3){
|
||||||
NBTTagCompound compound = new NBTTagCompound();
|
NBTTagCompound compound = new NBTTagCompound();
|
||||||
compound.setInteger("X", this.chest.getPos().getX());
|
compound.setInteger("X", this.chest.getPos().getX());
|
||||||
compound.setInteger("Y", this.chest.getPos().getY());
|
compound.setInteger("Y", this.chest.getPos().getY());
|
||||||
|
@ -71,6 +72,7 @@ public class GuiGiantChest extends GuiContainer{
|
||||||
compound.setInteger("ButtonID", button.id);
|
compound.setInteger("ButtonID", button.id);
|
||||||
PacketHandler.theNetwork.sendToServer(new PacketClientToServer(compound, PacketHandler.GUI_BUTTON_TO_TILE_HANDLER));
|
PacketHandler.theNetwork.sendToServer(new PacketClientToServer(compound, PacketHandler.GUI_BUTTON_TO_TILE_HANDLER));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawGuiContainerForegroundLayer(int x, int y){
|
public void drawGuiContainerForegroundLayer(int x, int y){
|
||||||
|
|
Loading…
Reference in a new issue