diff options
| author | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-31 23:03:10 +0000 |
|---|---|---|
| committer | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-31 23:03:10 +0000 |
| commit | eb817d454e89818a39793864e9f4455b09e7a291 (patch) | |
| tree | 4b320f5532f657ae210bd9b145e7a61f861f6860 /src/client/java | |
| parent | 29aaccf793da15e5b28993be84279a6087d5de6e (diff) | |
fix(skin): NoCustomizableSkinOverlay not working
Diffstat (limited to 'src/client/java')
| -rw-r--r-- | src/client/java/world/anhgelus/molehunt/client/mixin/NoCustomizableSkinOverlay.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/client/java/world/anhgelus/molehunt/client/mixin/NoCustomizableSkinOverlay.java b/src/client/java/world/anhgelus/molehunt/client/mixin/NoCustomizableSkinOverlay.java index ff01075..b524920 100644 --- a/src/client/java/world/anhgelus/molehunt/client/mixin/NoCustomizableSkinOverlay.java +++ b/src/client/java/world/anhgelus/molehunt/client/mixin/NoCustomizableSkinOverlay.java @@ -7,6 +7,7 @@ import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import world.anhgelus.molehunt.Molehunt; import world.anhgelus.molehunt.client.MolehuntClient; @Mixin(GameOptions.class) @@ -16,11 +17,9 @@ public abstract class NoCustomizableSkinOverlay { @Inject(at = @At("HEAD"), method = "togglePlayerModelPart", cancellable = true) public void togglePlayerModelPart(PlayerModelPart part, boolean enabled, CallbackInfo ci) { - if (MolehuntClient.showSkins() && MolehuntClient.gameStarted()) { - setPlayerModelPart(part, true); - ((GameOptions) (Object) this).sendClientSettings(); - - ci.cancel(); - } + if (MolehuntClient.showSkins()) return; + setPlayerModelPart(part, true); + ((GameOptions) (Object) this).sendClientSettings(); + ci.cancel(); } } |
