From 2cc5a8aa539790cf5665096a9c6baac77e9d6e45 Mon Sep 17 00:00:00 2001 From: copygirl Date: Sun, 21 Sep 2014 16:19:13 +0200 Subject: [PATCH] Fix #246, server crash when crafting station loaded --- .../copy/betterstorage/api/crafting/ShapedStationRecipe.java | 2 +- .../copy/betterstorage/inventory/InventoryCraftingStation.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/mcft/copy/betterstorage/api/crafting/ShapedStationRecipe.java b/src/main/java/net/mcft/copy/betterstorage/api/crafting/ShapedStationRecipe.java index 33bb6385..12923855 100644 --- a/src/main/java/net/mcft/copy/betterstorage/api/crafting/ShapedStationRecipe.java +++ b/src/main/java/net/mcft/copy/betterstorage/api/crafting/ShapedStationRecipe.java @@ -71,7 +71,7 @@ else if (width != line.length()) recipeInput = new IRecipeInput[width * height]; recipeOutput = output; - + for (int x = 0; x < width; x++) for (int y = 0; y < height; y++) recipeInput[x + y * width] = inputMap.get(((String)input[y]).charAt(x)); diff --git a/src/main/java/net/mcft/copy/betterstorage/inventory/InventoryCraftingStation.java b/src/main/java/net/mcft/copy/betterstorage/inventory/InventoryCraftingStation.java index b703af2d..f6ef8cef 100644 --- a/src/main/java/net/mcft/copy/betterstorage/inventory/InventoryCraftingStation.java +++ b/src/main/java/net/mcft/copy/betterstorage/inventory/InventoryCraftingStation.java @@ -49,7 +49,6 @@ private InventoryCraftingStation(String name, ItemStack[] crafting, ItemStack[] this.output = output; this.contents = contents; lastOutput = new ItemStack[output.length]; - inputChanged(); } public void update() {