Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
Merge branch '1.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
renevo committed Jun 13, 2016
2 parents 3ba6c3a + a513c6b commit 9725b93
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions build.properties
Original file line number Diff line number Diff line change
@@ -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.+
jei_version=3.6.+
12 changes: 6 additions & 6 deletions src/main/java/com/renevo/pcb/ItemPortableCraftBench.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<ItemStack> 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);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/renevo/pcb/PortableCraftBenchMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9725b93

Please sign in to comment.