mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-19 19:04:23 +01:00
Fix and bump
This commit is contained in:
parent
5dab40f21d
commit
6cd6e5e3b1
2 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ authors=Verdana, Rene_Z, Mumfrey, Killjoy1221, Sollace
|
|||
description=Mine Little Pony turns players and mobs into ponies
|
||||
description_mlp=Mine Little Pony turns players and mobs into ponies. Press F9 ingame to access settings.
|
||||
description_hd=Separate skin server for Mine Little Pony that also supports HD skins. Access via button on the main menu.
|
||||
version=3.2.10
|
||||
version=3.2.11
|
||||
release=RELEASE
|
||||
minecraft_version=1.12.2
|
||||
mappings_version=stable_39
|
||||
|
|
|
@ -9,7 +9,7 @@ import net.minecraft.client.gui.GuiScreen;
|
|||
import net.minecraft.client.gui.GuiYesNoCallback;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.gen.Invoker;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
@ -17,11 +17,11 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||
@Mixin(GuiScreen.class)
|
||||
abstract class MixinGuiScreen extends Gui implements GuiYesNoCallback {
|
||||
|
||||
@Shadow
|
||||
protected abstract <T extends GuiButton> T addButton(T buttonIn);
|
||||
@Invoker("addButton")
|
||||
protected abstract <T extends GuiButton> T invokeAddButton(T buttonIn);
|
||||
|
||||
@Inject(method = "setWorldAndResolution(Lnet/minecraft/client/Minecraft;II)V", at = @At("RETURN"))
|
||||
private void setWorldAndResolution(Minecraft mc, int width, int height, CallbackInfo info) {
|
||||
HDSkinManager.INSTANCE.displaySkinningGui((GuiScreen)(Object)this, this::addButton);
|
||||
HDSkinManager.INSTANCE.displaySkinningGui((GuiScreen)(Object)this, this::invokeAddButton);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue