Skip to content

Commit

Permalink
port new dump button design from 1.7.10 #67
Browse files Browse the repository at this point in the history
  • Loading branch information
maggi373 committed Oct 18, 2023
1 parent 45b1b6b commit ba3e93c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/mekanism/client/gui/GuiFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public GuiFactory(InventoryPlayer inventory, TileEntityFactory tile) {
@Override
public void initGui() {
super.initGui();
this.buttonList.add(this.infuserDumpButton = new GuiButtonImage(1, this.guiLeft+6, this.guiTop+44, 21, 10, 147, 72, 0, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png")){
this.buttonList.add(this.infuserDumpButton = new GuiButtonImage(1, this.guiLeft+6, this.guiTop+44, 24, 9, 145, 73, 0, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png")){
@Override
public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks) {
if (GuiFactory.this.tileEntity.getRecipeType() == RecipeType.INFUSING) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected void mouseClicked(int x, int y, int button) throws IOException {
if (button == 0) {
int xAxis = x - guiLeft;
int yAxis = y - guiTop;
if (xAxis > 148 && xAxis < 168 && yAxis > 73 && yAxis < 82) {
if (xAxis > 144 && xAxis < 169 && yAxis > 72 && yAxis < 82) {
TileNetworkList data = TileNetworkList.withContents(0);
Mekanism.packetHandler.sendToServer(new TileEntityMessage(tileEntity, data));
SoundHandler.playSound(SoundEvents.UI_BUTTON_CLICK);
Expand Down
Binary file modified src/main/resources/assets/mekanism/gui/guimetallurgicinfuser.png
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 ba3e93c

Please sign in to comment.