Skip to content

Commit

Permalink
add dump button for factories #39
Browse files Browse the repository at this point in the history
  • Loading branch information
maggi373 committed Dec 23, 2022
1 parent 40b970e commit 97ded7a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/main/java/mekanism/client/gui/GuiFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,13 @@ protected void mouseClicked(int x, int y, int button)
int xAxis = (x - (width - xSize) / 2);
int yAxis = (y - (height - ySize) / 2);

if(xAxis > 8 && xAxis < 168 && yAxis > 78 && yAxis < 83)
if(xAxis > 144 && xAxis < 168 && yAxis > 83 && yAxis < 93)
{
ItemStack stack = mc.thePlayer.inventory.getItemStack();

if(stack != null && stack.getItem() instanceof ItemGaugeDropper)
{
ArrayList data = new ArrayList();
data.add(1);

Mekanism.packetHandler.sendToServer(new TileEntityMessage(Coord4D.get(tileEntity), data));
SoundHandler.playSound("gui.button.press");
}
ArrayList data = new ArrayList();
data.add(1);

Mekanism.packetHandler.sendToServer(new TileEntityMessage(Coord4D.get(tileEntity), data));
SoundHandler.playSound("gui.button.press");
}
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 97ded7a

Please sign in to comment.