mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Don't rotate ShapedRecipes. Fixes BUKKIT-1334
ShapedRecipe's getShape() always returns a 90deg rotated shape of the original shape, this commit fixes it.
This commit is contained in:
parent
164c066453
commit
7dc47892a4
1 changed files with 4 additions and 4 deletions
|
@ -25,9 +25,9 @@ public class ShapedRecipes implements IRecipe {
|
||||||
public org.bukkit.inventory.ShapedRecipe toBukkitRecipe() {
|
public org.bukkit.inventory.ShapedRecipe toBukkitRecipe() {
|
||||||
CraftItemStack result = new CraftItemStack(this.result);
|
CraftItemStack result = new CraftItemStack(this.result);
|
||||||
CraftShapedRecipe recipe = new CraftShapedRecipe(result, this);
|
CraftShapedRecipe recipe = new CraftShapedRecipe(result, this);
|
||||||
switch (this.width) {
|
switch (this.height) {
|
||||||
case 1:
|
case 1:
|
||||||
switch (this.height) {
|
switch (this.width) {
|
||||||
case 1:
|
case 1:
|
||||||
recipe.shape("a");
|
recipe.shape("a");
|
||||||
break;
|
break;
|
||||||
|
@ -40,7 +40,7 @@ public class ShapedRecipes implements IRecipe {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
switch (this.height) {
|
switch (this.width) {
|
||||||
case 1:
|
case 1:
|
||||||
recipe.shape("a","b");
|
recipe.shape("a","b");
|
||||||
break;
|
break;
|
||||||
|
@ -53,7 +53,7 @@ public class ShapedRecipes implements IRecipe {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
switch (this.height) {
|
switch (this.width) {
|
||||||
case 1:
|
case 1:
|
||||||
recipe.shape("a","b","c");
|
recipe.shape("a","b","c");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue