mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Duals skin mode is now the default mode
This commit is contained in:
parent
5ff19ea93d
commit
884fb62ff5
3 changed files with 12 additions and 12 deletions
|
@ -57,11 +57,6 @@ public class PonyConfig extends Config {
|
||||||
.addComment("Helps to prevent entities from vanishing when they're in long stacks");
|
.addComment("Helps to prevent entities from vanishing when they're in long stacks");
|
||||||
public final Setting<Boolean> horsieMode = value("settings", "horsieMode", false)
|
public final Setting<Boolean> horsieMode = value("settings", "horsieMode", false)
|
||||||
.addComment("Enables the alternative horsey models from the April Fools 2023 update");
|
.addComment("Enables the alternative horsey models from the April Fools 2023 update");
|
||||||
public final Setting<Boolean> mixedHumanSkins = value("settings", "dualSkinMode", false)
|
|
||||||
.addComment("(Experimental) Use priority to decide between displaying the HDSkins' texture, or vanilla mojang server skin")
|
|
||||||
.addComment("(Experimental) eg. On pony level = HUMANS")
|
|
||||||
.addComment("(Experimental) Any time both skins resolve to the same race (eg. on pony-level HUMANS, or if both are ponies)")
|
|
||||||
.addComment("(Experimental) the skin with the highest priority will be chosen.");;
|
|
||||||
|
|
||||||
public final Setting<SizePreset> sizeOverride = value("debug", "sizeOverride", SizePreset.UNSET)
|
public final Setting<SizePreset> sizeOverride = value("debug", "sizeOverride", SizePreset.UNSET)
|
||||||
.addComment("Overrides pony sizes")
|
.addComment("Overrides pony sizes")
|
||||||
|
|
|
@ -61,15 +61,21 @@ public class MineLPHDSkins extends ClientSkinsProxy implements ClientModInitiali
|
||||||
GuiSkins.setSkinsGui(GuiSkinsMineLP::new);
|
GuiSkins.setSkinsGui(GuiSkinsMineLP::new);
|
||||||
|
|
||||||
HDSkins.getInstance().getSkinPrioritySorter().addSelector((skinType, playerSkins) -> {
|
HDSkins.getInstance().getSkinPrioritySorter().addSelector((skinType, playerSkins) -> {
|
||||||
if (skinType == SkinType.SKIN && PonyConfig.getInstance().mixedHumanSkins.get()) {
|
if (skinType == SkinType.SKIN) {
|
||||||
Optional<Pony> hdPony = getPony(playerSkins.hd());
|
Optional<Pony> hdPony = getPony(playerSkins.hd());
|
||||||
Optional<Pony> vanillaPony = getPony(playerSkins.vanilla());
|
Optional<Pony> vanillaPony = getPony(playerSkins.vanilla());
|
||||||
|
|
||||||
if (hdPony.isPresent() && vanillaPony.isPresent()
|
if (hdPony.isPresent() && vanillaPony.isPresent()) {
|
||||||
&& vanillaPony.get().metadata().priority() > hdPony.get().metadata().priority()
|
PonyLevel level = PonyConfig.getInstance().ponyLevel.get();
|
||||||
&& (PonyConfig.getInstance().ponyLevel.get() == PonyLevel.HUMANS
|
boolean vanillaHuman = vanillaPony.get().metadata().race().isHuman();
|
||||||
|| vanillaPony.get().metadata().race().isHuman() == hdPony.get().metadata().race().isHuman())) {
|
boolean hdHuman = hdPony.get().metadata().race().isHuman();
|
||||||
return playerSkins.vanilla();
|
if (vanillaHuman != hdHuman) {
|
||||||
|
return (level == PonyLevel.HUMANS ? vanillaHuman : hdHuman) ? playerSkins.vanilla() : playerSkins.hd();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (vanillaPony.get().metadata().priority() > hdPony.get().metadata().priority()) {
|
||||||
|
return playerSkins.vanilla();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
"minelp.options.flappyelytras": "Flap Wings whilst Gliding",
|
"minelp.options.flappyelytras": "Flap Wings whilst Gliding",
|
||||||
"minelp.options.horsiemode": "Horsey Horse Mode",
|
"minelp.options.horsiemode": "Horsey Horse Mode",
|
||||||
"minelp.options.nofun": "Boring Mode",
|
"minelp.options.nofun": "Boring Mode",
|
||||||
"minelp.options.dualskinmode": "(Experimental) Dual Skin Mode",
|
|
||||||
"minelp.options.button": "Display On Title Screen",
|
"minelp.options.button": "Display On Title Screen",
|
||||||
"minelp.options.button.on": "Always Display\n\nBoth the pony button and HD Skins button are visible (if installed)",
|
"minelp.options.button.on": "Always Display\n\nBoth the pony button and HD Skins button are visible (if installed)",
|
||||||
"minelp.options.button.auto": "Display only when HD Skins is not installed",
|
"minelp.options.button.auto": "Display only when HD Skins is not installed",
|
||||||
|
|
Loading…
Reference in a new issue