Don't rotate ShapedRecipes. Fixes BUKKIT-1334
ShapedRecipe's getShape() always returns a 90deg rotated shape of the original shape, this commit fixes it.
Dieser Commit ist enthalten in:
Ursprung
164c066453
Commit
7dc47892a4
@ -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;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren