mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Fix typo
This commit is contained in:
parent
0f9e865dc4
commit
2c6c23d05c
4 changed files with 9 additions and 9 deletions
|
@ -106,7 +106,7 @@ public class MineLittlePony implements ClientModInitializer {
|
|||
}
|
||||
|
||||
if ((mainMenu || inGame) && keyBinding.isPressed()) {
|
||||
client.setScreen(new PonySettingsscreen(client.currentScreen));
|
||||
client.setScreen(new PonySettingsScreen(client.currentScreen));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ public class MineLittlePony implements ClientModInitializer {
|
|||
if (show) {
|
||||
int y = hasHdSkins ? 75 : 50;
|
||||
Button button = buttons.addButton(new Button(screen.width - 50, screen.height - y, 20, 20))
|
||||
.onClick(sender -> MinecraftClient.getInstance().setScreen(new PonySettingsscreen(screen)));
|
||||
.onClick(sender -> MinecraftClient.getInstance().setScreen(new PonySettingsScreen(screen)));
|
||||
button.getStyle()
|
||||
.setIcon(new TextureSprite()
|
||||
.setPosition(2, 2)
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.jetbrains.annotations.Nullable;
|
|||
* In-Game options menu.
|
||||
*
|
||||
*/
|
||||
public class PonySettingsscreen extends GameGui {
|
||||
public class PonySettingsScreen extends GameGui {
|
||||
private static final String OPTIONS_PREFIX = "minelp.options.";
|
||||
private static final String PONY_LEVEL = OPTIONS_PREFIX + "ponylevel";
|
||||
private static final String MOB_PREFIX = "minelp.mobs.";
|
||||
|
@ -41,7 +41,7 @@ public class PonySettingsscreen extends GameGui {
|
|||
|
||||
private final boolean hiddenOptions;
|
||||
|
||||
public PonySettingsscreen(@Nullable Screen parent) {
|
||||
public PonySettingsScreen(@Nullable Screen parent) {
|
||||
super(Text.literal(OPTIONS_PREFIX + "title"), parent);
|
||||
content.margin.top = 30;
|
||||
content.margin.bottom = 30;
|
|
@ -1,6 +1,6 @@
|
|||
package com.minelittlepony.client.compat.hdskins;
|
||||
|
||||
import com.minelittlepony.client.PonySettingsscreen;
|
||||
import com.minelittlepony.client.PonySettingsScreen;
|
||||
import com.minelittlepony.client.MineLittlePony;
|
||||
import com.minelittlepony.common.client.gui.dimension.Bounds;
|
||||
import com.minelittlepony.common.client.gui.element.Button;
|
||||
|
@ -41,9 +41,9 @@ class GuiSkinsMineLP extends GuiSkins {
|
|||
|
||||
@Override
|
||||
protected void initServerPreviewButtons(Bounds area) {
|
||||
if (!(parent instanceof PonySettingsscreen)) {
|
||||
if (!(parent instanceof PonySettingsScreen)) {
|
||||
addButton(new Button(area.right() - 20, area.bottom() + 5, 20, 20))
|
||||
.onClick(sender -> client.setScreen(new PonySettingsscreen(this)))
|
||||
.onClick(sender -> client.setScreen(new PonySettingsScreen(this)))
|
||||
.getStyle()
|
||||
.setIcon(new TextureSprite()
|
||||
.setPosition(2, 2)
|
||||
|
|
|
@ -3,11 +3,11 @@ package com.minelittlepony.client.compat.modmenu;
|
|||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
|
||||
import com.minelittlepony.client.PonySettingsscreen;
|
||||
import com.minelittlepony.client.PonySettingsScreen;
|
||||
|
||||
public class MineLPModMenuFactory implements ModMenuApi {
|
||||
@Override
|
||||
public ConfigScreenFactory<?> getModConfigScreenFactory() {
|
||||
return PonySettingsscreen::new;
|
||||
return PonySettingsScreen::new;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue