Update for mixins 0.7. Fixes #35

This commit is contained in:
Matthew Messinger 2017-07-28 14:25:26 -04:00
parent e5c0cc1609
commit 4fe2035f81
5 changed files with 14 additions and 6 deletions

View file

@ -20,7 +20,7 @@ apply plugin: 'net.minecraftforge.gradle.liteloader'
apply plugin: 'org.spongepowered.mixin'
group = 'com.minelittlepony'
version = '1.12.0.1'
version = '1.12.0.2'
description = 'Mine Little Pony'
targetCompatibility = 1.8
@ -28,7 +28,7 @@ sourceCompatibility = 1.8
minecraft {
version = "1.12"
mappings = 'snapshot_20170615'
mappings = 'snapshot_20170627'
runDir = 'run'
replace '@VERSION@', project.version
}

View file

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Thu Jun 22 00:35:21 EDT 2017
build.number=382
#Fri Jul 28 14:25:09 EDT 2017
build.number=417

View file

@ -1,6 +1,6 @@
{
"required": true,
"minVersion": "0.6",
"minVersion": "0.7",
"package": "com.voxelmodpack.hdskins.mixin",
"refmap": "mixin.hdskins.refmap.json",
"mixins": [

View file

@ -27,6 +27,7 @@ import net.minecraft.util.ResourceLocation;
import org.objectweb.asm.Opcodes;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.At.Shift;
@ -34,6 +35,8 @@ import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import javax.annotation.Nonnull;
@Mixin(RenderPlayer.class)
public abstract class MixinRenderPlayer extends RenderLivingBase<AbstractClientPlayer> implements IRenderPony {
@ -240,7 +243,12 @@ public abstract class MixinRenderPlayer extends RenderLivingBase<AbstractClientP
this.playerModel.apply(thePony.getMetadata());
}
/**
* @author killjoy
*/
@Overwrite
@Override
@Nonnull
public ResourceLocation getEntityTexture(AbstractClientPlayer player) {
Pony thePony = MineLittlePony.getInstance().getManager().getPony(player);
return thePony.getTexture();

View file

@ -1,6 +1,6 @@
{
"required": true,
"minVersion": "0.6",
"minVersion": "0.7",
"package": "com.minelittlepony.mixin",
"refmap": "mixin.minelp.refmap.json",
"compatibilityLevel": "JAVA_8",