Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Commit 7090ac5

Browse files
committed
Merge pull request walterhiggins#274 from aaron-powell/master
Fixed bukkit version of recipes.js module
2 parents b99fe6a + 893dbd6 commit 7090ac5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/js/modules/bukkit/recipes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ var bkShapedRecipe = org.bukkit.inventory.ShapedRecipe;
33

44
exports.add = function( recipe ){
55
var result = new bkShapedRecipe( recipe.result );
6-
result.shape( recipe.shape );
6+
result.shape(recipe.shape[0], recipe.shape[1], recipe.shape[2]);
77
for (var i in recipe.ingredients ){
8-
result.setIngredient( i, recipe.ingredients[i] );
8+
result.setIngredient( new java.lang.Character(i), recipe.ingredients[i].getData() );
99
}
1010
server.addRecipe(result);
1111
return result;

0 commit comments

Comments
 (0)