From 5a291b0a8025fafb83a98405c3ceb344e466d2e8 Mon Sep 17 00:00:00 2001 From: Amaury Carrade Date: Sat, 27 Sep 2014 20:47:43 +0200 Subject: [PATCH] Fixed a bug (exception in the console on click on the small crafting grid). Type of the crafting type constants changed from String to int (to be able to use == to test the value). --- src/main/java/me/azenet/UHPlugin/UHRecipeManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/azenet/UHPlugin/UHRecipeManager.java b/src/main/java/me/azenet/UHPlugin/UHRecipeManager.java index 6e39ebc..3c66341 100644 --- a/src/main/java/me/azenet/UHPlugin/UHRecipeManager.java +++ b/src/main/java/me/azenet/UHPlugin/UHRecipeManager.java @@ -167,6 +167,10 @@ public boolean isRecipeAllowed(Recipe recipe) { * @return true if the recipe is an alternate recipe for the compass. */ public boolean isValidCompassRecipe(ItemStack[] matrix) { + if(matrix.length <= 4) { + return false; // Small crafting grid + } + // 1: check of the static part (central ingredient + iron)