mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-01 16:27:59 +01:00
Fixed the seapony toggle buttons
This commit is contained in:
parent
1ac52b28a7
commit
2716de4b4b
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue