From e56fabe7c32b7f2bf8bd64f2c4ad320678ed2afc Mon Sep 17 00:00:00 2001 From: BigXplosion Date: Tue, 24 May 2016 19:57:37 +0200 Subject: [PATCH] Update to 1.9.4 --- build.gradle | 4 ++-- build.properties | 4 ++-- src/main/java/com/bigxplosion/shieldhider/ShieldHider.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index b4ffd9d..8f571ac 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { } } dependencies { - classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT' + classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' @@ -30,5 +30,5 @@ minecraft { replace "@VERSION@", config.version.mod - mappings = "snapshot_20160312" + mappings = "snapshot_20160520" } diff --git a/build.properties b/build.properties index 382e971..00db51a 100644 --- a/build.properties +++ b/build.properties @@ -1,3 +1,3 @@ version.mod=1.0.0 -version.minecraft=1.9 -version.forge=12.16.0.1868 +version.minecraft=1.9.4 +version.forge=12.17.0.1909 diff --git a/src/main/java/com/bigxplosion/shieldhider/ShieldHider.java b/src/main/java/com/bigxplosion/shieldhider/ShieldHider.java index f3af77e..601e130 100644 --- a/src/main/java/com/bigxplosion/shieldhider/ShieldHider.java +++ b/src/main/java/com/bigxplosion/shieldhider/ShieldHider.java @@ -35,9 +35,9 @@ public void preInit(FMLPreInitializationEvent event) { final ModelResourceLocation shield1 = new ModelResourceLocation("shieldhider:shield1"); final ModelResourceLocation shield2 = new ModelResourceLocation("shieldhider:shield2"); - ModelLoader.registerItemVariants(Items.shield, shield1, shield2); + ModelLoader.registerItemVariants(Items.SHIELD, shield1, shield2); - ModelLoader.setCustomMeshDefinition(Items.shield, new ItemMeshDefinition() { + ModelLoader.setCustomMeshDefinition(Items.SHIELD, new ItemMeshDefinition() { @Override public ModelResourceLocation getModelLocation(ItemStack stack) { return hidingMode == 1 ? shield1 : shield2;