Skip to content

Commit

Permalink
Merge pull request #67 from Thorfusion/39-readd-the-dump-button-on-in…
Browse files Browse the repository at this point in the history
…fusing-factories

add the dump button on factories #39
  • Loading branch information
DrParadox7 committed Dec 23, 2022
2 parents 4e6fe6f + 97ded7a commit 55b724b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 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
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected void mouseClicked(int x, int y, int button)
int xAxis = (x - (width - xSize) / 2);
int yAxis = (y - (height - ySize) / 2);

if(xAxis > 148 && xAxis < 168 && yAxis > 73 && yAxis < 82)
if(xAxis > 144 && xAxis < 168 && yAxis > 72 && yAxis < 83)
{
ArrayList data = new ArrayList();
data.add(0);
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.
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 55b724b

Please sign in to comment.