Fix seapony toggles (again) and center the skin manager title

This commit is contained in:
Sollace 2018-07-27 16:27:19 +02:00
parent 2716de4b4b
commit 94b01a460f
2 changed files with 7 additions and 7 deletions

View file

@ -193,7 +193,7 @@ public class GuiSkins extends GameGui {
panorama.init(); panorama.init();
addButton(new Label(width / 2, 10, "hdskins.manager", 0xffffff)); addButton(new Label(width / 2, 10, "hdskins.manager", 0xffffff, true));
addButton(new Button(30, height - 36, 60, 20, "Browse...", sender ->{ addButton(new Button(30, height - 36, 60, 20, "Browse...", sender ->{
selectedSkin = null; selectedSkin = null;

View file

@ -42,10 +42,14 @@ 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 -> {
if (!isWet) {
setWet(true); 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 -> {
if (isWet) {
setWet(false); setWet(false);
}
})).setTooltip("minelp.mode.dry"); })).setTooltip("minelp.mode.dry");
setWet(false); setWet(false);
@ -59,10 +63,6 @@ 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();