From 03599bfdedb567c16b4ecd1f845da0b9cca3f5b0 Mon Sep 17 00:00:00 2001 From: MachineMuse Date: Thu, 11 Jul 2013 21:29:18 -0600 Subject: [PATCH] attempt to fix smartmoving dep --- build.xml | 4 ++-- .../powersuits/client/render/item/ArmorModel.scala | 9 ++------- .../client/render/item/SMovingArmorModel.scala | 9 +++++++++ .../client/render/item/VanillaArmorModel.scala | 9 +++++++++ src/minecraft/net/minecraft/src/ModelPlayer.java | 7 +++---- 5 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 src/minecraft/net/machinemuse/powersuits/client/render/item/SMovingArmorModel.scala create mode 100644 src/minecraft/net/machinemuse/powersuits/client/render/item/VanillaArmorModel.scala diff --git a/build.xml b/build.xml index 844017e..8678b8f 100644 --- a/build.xml +++ b/build.xml @@ -318,11 +318,11 @@ - + - + diff --git a/src/minecraft/net/machinemuse/powersuits/client/render/item/ArmorModel.scala b/src/minecraft/net/machinemuse/powersuits/client/render/item/ArmorModel.scala index 5c0e45c..a4f8510 100644 --- a/src/minecraft/net/machinemuse/powersuits/client/render/item/ArmorModel.scala +++ b/src/minecraft/net/machinemuse/powersuits/client/render/item/ArmorModel.scala @@ -9,20 +9,15 @@ import net.minecraft.entity.player.EntityPlayer import net.minecraft.item.ItemStack import net.minecraftforge.client.model.obj.WavefrontObject import net.minecraft.nbt.NBTTagCompound -import net.minecraft.src.ModelPlayer object ArmorModel { - val instance:ArmorModel = try { + val instance: ArmorModel = try { new SMovingArmorModel } catch { - case _:Throwable => new VanillaArmorModel + case _: Throwable => new VanillaArmorModel } } -class SMovingArmorModel extends ModelPlayer(0) with ArmorModel - -class VanillaArmorModel extends ModelBiped(0) with ArmorModel - trait ArmorModel extends ModelBiped { var renderSpec: NBTTagCompound = null var visible: Int = 0 diff --git a/src/minecraft/net/machinemuse/powersuits/client/render/item/SMovingArmorModel.scala b/src/minecraft/net/machinemuse/powersuits/client/render/item/SMovingArmorModel.scala new file mode 100644 index 0000000..6197039 --- /dev/null +++ b/src/minecraft/net/machinemuse/powersuits/client/render/item/SMovingArmorModel.scala @@ -0,0 +1,9 @@ +package net.machinemuse.powersuits.client.render.item + +import net.minecraft.src.ModelPlayer + +/** + * Author: MachineMuse (Claire Semple) + * Created: 9:23 PM, 11/07/13 + */ +class SMovingArmorModel extends ModelPlayer(0) with ArmorModel \ No newline at end of file diff --git a/src/minecraft/net/machinemuse/powersuits/client/render/item/VanillaArmorModel.scala b/src/minecraft/net/machinemuse/powersuits/client/render/item/VanillaArmorModel.scala new file mode 100644 index 0000000..2b2e807 --- /dev/null +++ b/src/minecraft/net/machinemuse/powersuits/client/render/item/VanillaArmorModel.scala @@ -0,0 +1,9 @@ +package net.machinemuse.powersuits.client.render.item + +import net.minecraft.client.model.ModelBiped + +/** + * Author: MachineMuse (Claire Semple) + * Created: 9:24 PM, 11/07/13 + */ +class VanillaArmorModel extends ModelBiped(0) with ArmorModel diff --git a/src/minecraft/net/minecraft/src/ModelPlayer.java b/src/minecraft/net/minecraft/src/ModelPlayer.java index 1bb98bc..fb7fa4e 100644 --- a/src/minecraft/net/minecraft/src/ModelPlayer.java +++ b/src/minecraft/net/minecraft/src/ModelPlayer.java @@ -2,12 +2,11 @@ package net.minecraft.src; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import net.minecraft.client.model.ModelBiped; @SideOnly(Side.CLIENT) -public class ModelPlayer extends net.minecraft.client.model.ModelBiped -{ - public ModelPlayer(float var1) - { +public class ModelPlayer extends ModelBiped { + public ModelPlayer(float var1) { super(var1); } } \ No newline at end of file