port new dump button design from 1.7.10 #67

This commit is contained in:
maggi373 committed 2026-03-19 17:43:19 +01:00
1 parent beea43c143
commit b6c8ad9713
3 files changed
+2 -2

No files matched your search

@@ -65,7 +65,7 @@ public class GuiFactory extends GuiMekanismTile<TileEntityFactory> {
@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) {
@@ -89,7 +89,7 @@ public class GuiMetallurgicInfuser extends GuiMekanismTile<TileEntityMetallurgic
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);
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB