mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-03-30 16:27:43 +02:00
Fixed mod menu messing with our button
This commit is contained in:
parent
0056d078c9
commit
7bff1f2625
1 changed files with 6 additions and 6 deletions
|
@ -147,16 +147,16 @@ public class MineLittlePony implements ClientModInitializer {
|
||||||
));
|
));
|
||||||
|
|
||||||
if (show) {
|
if (show) {
|
||||||
int y = hasHdSkins ? 80 : 50;
|
int y = hasHdSkins ? 75 : 50;
|
||||||
buttons.add(new Button(screen.width - 50, screen.height - y, 20, 20).onClick(sender -> {
|
Button button = buttons.add(new Button(screen.width - 50, screen.height - y, 20, 20))
|
||||||
MinecraftClient.getInstance().openScreen(new GuiPonySettings());
|
.onClick(sender -> MinecraftClient.getInstance().openScreen(new GuiPonySettings()));
|
||||||
}).setStyle(new com.minelittlepony.common.client.gui.style.Style()
|
button.getStyle()
|
||||||
.setIcon(new TextureSprite()
|
.setIcon(new TextureSprite()
|
||||||
.setPosition(2, 2)
|
.setPosition(2, 2)
|
||||||
.setTexture(new Identifier("minelittlepony", "textures/gui/pony.png"))
|
.setTexture(new Identifier("minelittlepony", "textures/gui/pony.png"))
|
||||||
.setTextureSize(16, 16)
|
.setTextureSize(16, 16)
|
||||||
.setSize(16, 16))
|
.setSize(16, 16));
|
||||||
));
|
button.y = screen.height - y; // ModMenu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue