mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Fix mixins for 0.7
This commit is contained in:
parent
3d818cd9d2
commit
d92eb05913
4 changed files with 15 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -11,3 +11,5 @@ run/
|
|||
logs/
|
||||
.idea/
|
||||
classes/
|
||||
*.iml
|
||||
out/
|
|
@ -12,7 +12,7 @@ buildscript {
|
|||
}
|
||||
dependencies {
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
|
||||
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
|
||||
classpath 'org.spongepowered:mixingradle:0.5-SNAPSHOT'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ apply plugin: 'net.minecraftforge.gradle.liteloader'
|
|||
apply plugin: 'org.spongepowered.mixin'
|
||||
|
||||
group = 'com.minelittlepony'
|
||||
version = '1.11.2.3'
|
||||
version = '1.11.2.4'
|
||||
description = 'Mine Little Pony'
|
||||
|
||||
targetCompatibility = 1.8
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#Build Number for ANT. Do not edit!
|
||||
#Tue Mar 28 02:04:51 EDT 2017
|
||||
build.number=312
|
||||
#Tue Aug 08 16:46:27 EDT 2017
|
||||
build.number=318
|
||||
|
|
|
@ -8,7 +8,11 @@ import com.minelittlepony.model.PMAPI;
|
|||
import com.minelittlepony.model.PlayerModel;
|
||||
import com.minelittlepony.model.pony.ModelHumanPlayer;
|
||||
import com.minelittlepony.model.pony.ModelPlayerPony;
|
||||
import com.minelittlepony.renderer.layer.*;
|
||||
import com.minelittlepony.renderer.layer.LayerHeldPonyItem;
|
||||
import com.minelittlepony.renderer.layer.LayerPonyArmor;
|
||||
import com.minelittlepony.renderer.layer.LayerPonyCape;
|
||||
import com.minelittlepony.renderer.layer.LayerPonyCustomHead;
|
||||
import com.minelittlepony.renderer.layer.LayerPonyElytra;
|
||||
import net.minecraft.client.entity.AbstractClientPlayer;
|
||||
import net.minecraft.client.model.ModelPlayer;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
|
@ -231,8 +235,10 @@ public abstract class MixinRenderPlayer extends RenderLivingBase<AbstractClientP
|
|||
this.playerModel.apply(thePony.metadata);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceLocation getEntityTexture(AbstractClientPlayer player) {
|
||||
@Redirect(
|
||||
method = "getEntityTexture(Lnet/minecraft/client/entity/AbstractClientPlayer;)Lnet/minecraft/util/ResourceLocation;",
|
||||
at = @At(value = "INVOKE", target = "Lnet/minecraft/client/entity/AbstractClientPlayer;getLocationSkin()Lnet/minecraft/util/ResourceLocation;"))
|
||||
private ResourceLocation redirectEntityTexture(AbstractClientPlayer player) {
|
||||
Pony thePony = MineLittlePony.getInstance().getManager().getPonyFromResourceRegistry(player);
|
||||
return thePony.getTextureResourceLocation();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue