Misc cleanup

This commit is contained in:
Sollace 2022-11-23 21:32:25 +00:00
parent 51d2e28375
commit 7a8a1bb655
3 changed files with 4 additions and 11 deletions

View file

@ -19,9 +19,6 @@ class DummyPony extends DummyPlayer implements IPreviewModel, ModelAttributes.Sw
super(world, textures);
}
public void setWet(boolean wet) {
}
@Override
public boolean shouldUpdateRegistration(Pony pony) {
return false;
@ -41,6 +38,6 @@ class DummyPony extends DummyPlayer implements IPreviewModel, ModelAttributes.Sw
.getPony(this)
.getMetadata()
.getRace()
.getModelId(super.getModel().contains("slim"));
.getModelId(getTextures().usesThinSkin());
}
}

View file

@ -23,7 +23,7 @@ class GuiSkinsMineLP extends GuiSkins {
private IPonyManager ponyManager = MineLittlePony.getInstance().getManager();
private static final String[] panoramas = new String[] {
private static final String[] PANORAMAS = new String[] {
"minelittlepony:textures/cubemap/sugarcubecorner",
"minelittlepony:textures/cubemap/quillsandsofas",
"minelittlepony:textures/cubemap/sweetappleacres"
@ -66,9 +66,9 @@ class GuiSkinsMineLP extends GuiSkins {
@Override
protected Identifier getBackground() {
int i = (int)Math.floor(Math.random() * panoramas.length);
int i = (int)Math.floor(Math.random() * PANORAMAS.length);
return new Identifier(panoramas[i]);
return new Identifier(PANORAMAS[i]);
}
@Override

View file

@ -27,10 +27,6 @@ class PonyPreview extends PlayerPreview {
return new DummyPony(world, textures);
}
public void setWet(boolean isWet) {
apply(p -> ((DummyPony)p).setWet(isWet));;
}
@Override
public Identifier getBlankSteveSkin(SkinType type) {
if (type == SkinType.SKIN) {