mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 00:37: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();
|
super.initGui();
|
||||||
|
|
||||||
addButton(btnModeWet = new GuiItemStackButton(2, 99, new ItemStack(Items.WATER_BUCKET), sender -> {
|
addButton(btnModeWet = new GuiItemStackButton(2, 99, new ItemStack(Items.WATER_BUCKET), sender -> {
|
||||||
setWet(false);
|
setWet(true);
|
||||||
})).setTooltip("minelp.mode.wet");
|
})).setTooltip("minelp.mode.wet");
|
||||||
addButton(btnModeDry = new GuiItemStackButton(2, 80, new ItemStack(Items.BUCKET), sender -> {
|
addButton(btnModeDry = new GuiItemStackButton(2, 80, new ItemStack(Items.BUCKET), sender -> {
|
||||||
setWet(true);
|
setWet(false);
|
||||||
})).setTooltip("minelp.mode.dry");
|
})).setTooltip("minelp.mode.dry");
|
||||||
|
|
||||||
setWet(false);
|
setWet(false);
|
||||||
|
@ -59,6 +59,10 @@ public class GuiSkinsMineLP extends GuiSkins {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setWet(boolean wet) {
|
protected void setWet(boolean wet) {
|
||||||
|
if (isWet == wet) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
isWet = wet;
|
isWet = wet;
|
||||||
localPlayer.releaseTextures();
|
localPlayer.releaseTextures();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue