diff options
author | THDigi <hunter_digital_sl@yahoo.com> | 2012-08-05 17:32:35 +0300 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-08-06 07:11:35 -0500 |
commit | 7dc47892a4f8ac525c06cc0feea8a913d3c2859d (patch) | |
tree | fc2e9352ff89287e837cfbbc7b034e65278af2f6 /src | |
parent | 164c06645343579406a8497d14c93427923d8b61 (diff) | |
download | craftbukkit-7dc47892a4f8ac525c06cc0feea8a913d3c2859d.tar craftbukkit-7dc47892a4f8ac525c06cc0feea8a913d3c2859d.tar.gz craftbukkit-7dc47892a4f8ac525c06cc0feea8a913d3c2859d.tar.lz craftbukkit-7dc47892a4f8ac525c06cc0feea8a913d3c2859d.tar.xz craftbukkit-7dc47892a4f8ac525c06cc0feea8a913d3c2859d.zip |
Don't rotate ShapedRecipes. Fixes BUKKIT-1334
ShapedRecipe's getShape() always returns a 90deg rotated shape of the original shape, this commit fixes it.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/ShapedRecipes.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/ShapedRecipes.java b/src/main/java/net/minecraft/server/ShapedRecipes.java index ec615441..83d4a176 100644 --- a/src/main/java/net/minecraft/server/ShapedRecipes.java +++ b/src/main/java/net/minecraft/server/ShapedRecipes.java @@ -25,9 +25,9 @@ public class ShapedRecipes implements IRecipe { public org.bukkit.inventory.ShapedRecipe toBukkitRecipe() { CraftItemStack result = new CraftItemStack(this.result); CraftShapedRecipe recipe = new CraftShapedRecipe(result, this); - switch (this.width) { + switch (this.height) { case 1: - switch (this.height) { + switch (this.width) { case 1: recipe.shape("a"); break; @@ -40,7 +40,7 @@ public class ShapedRecipes implements IRecipe { } break; case 2: - switch (this.height) { + switch (this.width) { case 1: recipe.shape("a","b"); break; @@ -53,7 +53,7 @@ public class ShapedRecipes implements IRecipe { } break; case 3: - switch (this.height) { + switch (this.width) { case 1: recipe.shape("a","b","c"); break; |