From a513c6bdea6c8a6c80a198b292afd3379b29b093 Mon Sep 17 00:00:00 2001 From: Tom Anderson Date: Mon, 13 Jun 2016 06:12:27 -0700 Subject: [PATCH] Updated to minecraft 1.9.4 Closes #11 --- build.properties | 8 ++++---- .../java/com/renevo/pcb/ItemPortableCraftBench.java | 12 ++++++------ .../java/com/renevo/pcb/PortableCraftBenchMod.java | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/build.properties b/build.properties index 29ecc1b..29cd92b 100644 --- a/build.properties +++ b/build.properties @@ -1,6 +1,6 @@ mod_version=1.5.0 -minecraft_version=1.9 -forge_version=12.16.1.1896 -mappings=snapshot_20160312 +minecraft_version=1.9.4 +forge_version=12.17.0.1961 +mappings=snapshot_20160518 -jei_version=3.3.+ \ No newline at end of file +jei_version=3.6.+ \ No newline at end of file diff --git a/src/main/java/com/renevo/pcb/ItemPortableCraftBench.java b/src/main/java/com/renevo/pcb/ItemPortableCraftBench.java index c2f3f52..f079e0b 100644 --- a/src/main/java/com/renevo/pcb/ItemPortableCraftBench.java +++ b/src/main/java/com/renevo/pcb/ItemPortableCraftBench.java @@ -22,23 +22,23 @@ public static void create() { GameRegistry.addShapelessRecipe( new ItemStack(portableCraftBench), new Object[] { - Blocks.crafting_table, - Items.string + Blocks.CRAFTING_TABLE, + Items.STRING }); } public ItemPortableCraftBench() { super(); - setMaxStackSize(1); - setUnlocalizedName("portableCraftBench"); - setCreativeTab(CreativeTabs.tabTools); + super.setMaxStackSize(1); + super.setUnlocalizedName("portableCraftBench"); + super.setCreativeTab(CreativeTabs.TOOLS); } @Override public ActionResult onItemRightClick(ItemStack itemStack, World world, EntityPlayer player, EnumHand hand) { if (world.isRemote) { - return ActionResult.newResult(EnumActionResult.PASS, itemStack); + return ActionResult.newResult(EnumActionResult.SUCCESS, itemStack); } else { player.openGui(PortableCraftBenchMod.instance, PortableCraftBenchMod.GUI_PORTABLE_CRAFT_BENCH_ID, world, 0, 0, 0); return ActionResult.newResult(EnumActionResult.SUCCESS, itemStack); diff --git a/src/main/java/com/renevo/pcb/PortableCraftBenchMod.java b/src/main/java/com/renevo/pcb/PortableCraftBenchMod.java index 057ba64..e7f1366 100644 --- a/src/main/java/com/renevo/pcb/PortableCraftBenchMod.java +++ b/src/main/java/com/renevo/pcb/PortableCraftBenchMod.java @@ -34,7 +34,7 @@ public void init(FMLInitializationEvent event) { MinecraftForge.EVENT_BUS.register(this); // 6 left, 0 up/down - since we are just adding a new achievement, we don't need an achievement page, this somehow just works... - achievementPcb = new Achievement("achievement.pcb", "pcb", 5, -4, ItemPortableCraftBench.portableCraftBench, net.minecraft.stats.AchievementList.buildWorkBench); + achievementPcb = new Achievement("achievement.pcb", "pcb", 5, -4, ItemPortableCraftBench.portableCraftBench, AchievementList.BUILD_WORK_BENCH); achievementPcb.registerStat(); proxy.initialization();