Fixed the seapony toggle buttons

This commit is contained in:
Sollace 2018-07-27 16:08:00 +02:00
parent 1ac52b28a7
commit 2716de4b4b

View file

@ -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();