Skip to content

Commit

Permalink
Fixed a bug (exception in the console on click on the small crafting …
Browse files Browse the repository at this point in the history
…grid).

Type of the crafting type constants changed from String to int (to be able to
use == to test the value).
  • Loading branch information
AmauryCarrade committed Sep 29, 2014
1 parent ac50c56 commit 5a291b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/me/azenet/UHPlugin/UHRecipeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5a291b0

Please sign in to comment.