From d41da2457f836d722979080dc205ebe9f946843d Mon Sep 17 00:00:00 2001 From: drcrazy Date: Sun, 30 Dec 2018 01:19:23 +0300 Subject: [PATCH] Lock button works again --- src/main/java/techreborn/client/gui/GuiAutoCrafting.java | 2 +- src/main/java/techreborn/client/gui/GuiRollingMachine.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/techreborn/client/gui/GuiAutoCrafting.java b/src/main/java/techreborn/client/gui/GuiAutoCrafting.java index d467ae92f..8d803d276 100644 --- a/src/main/java/techreborn/client/gui/GuiAutoCrafting.java +++ b/src/main/java/techreborn/client/gui/GuiAutoCrafting.java @@ -110,7 +110,7 @@ public class GuiAutoCrafting extends GuiBase { @Override protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOException { - if (isPointInRect(145 + getGuiLeft(), 4 + getGuiTop(), 20, 12, mouseX, mouseY)) { + if (isPointInRect(145, 4, 20, 12, mouseX, mouseY)) { NetworkManager.sendToServer(new PacketAutoCraftingTableLock(tileAutoCraftingTable, !tileAutoCraftingTable.locked)); return; } diff --git a/src/main/java/techreborn/client/gui/GuiRollingMachine.java b/src/main/java/techreborn/client/gui/GuiRollingMachine.java index 81f26515e..8f8bc3b46 100644 --- a/src/main/java/techreborn/client/gui/GuiRollingMachine.java +++ b/src/main/java/techreborn/client/gui/GuiRollingMachine.java @@ -76,7 +76,7 @@ public class GuiRollingMachine extends GuiBase { @Override protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOException { - if(isPointInRect(130 + getGuiLeft(), 4 + getGuiTop(), 20, 12, mouseX, mouseY)){ + if(isPointInRect(130, 4, 20, 12, mouseX, mouseY)){ NetworkManager.sendToServer(new PacketRollingMachineLock(rollingMachine, !rollingMachine.locked)); return; }