From 2716de4b4bffb41449db1549b0ac249935c0b93f Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 27 Jul 2018 16:08:00 +0200 Subject: [PATCH] Fixed the seapony toggle buttons --- .../com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java b/src/main/java/com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java index dc5c70fa..114e7bb4 100644 --- a/src/main/java/com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java +++ b/src/main/java/com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java @@ -42,10 +42,10 @@ public class GuiSkinsMineLP extends GuiSkins { super.initGui(); addButton(btnModeWet = new GuiItemStackButton(2, 99, new ItemStack(Items.WATER_BUCKET), sender -> { - setWet(false); + setWet(true); })).setTooltip("minelp.mode.wet"); addButton(btnModeDry = new GuiItemStackButton(2, 80, new ItemStack(Items.BUCKET), sender -> { - setWet(true); + setWet(false); })).setTooltip("minelp.mode.dry"); setWet(false); @@ -59,6 +59,10 @@ public class GuiSkinsMineLP extends GuiSkins { } protected void setWet(boolean wet) { + if (isWet == wet) { + return; + } + isWet = wet; localPlayer.releaseTextures();