mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
SPIGOT-4302: Use defaults when setting unplaced furnaces
This commit is contained in:
parent
d0bb0a1d7e
commit
6dee81a6f7
@ -88,6 +88,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -281,7 +327,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
private int s() {
|
||||||
|
- FurnaceRecipe furnacerecipe = (FurnaceRecipe) this.world.E().b(this, this.world);
|
||||||
|
+ FurnaceRecipe furnacerecipe = (this.hasWorld()) ? (FurnaceRecipe) this.world.E().b(this, this.world) : null; // CraftBukkit - SPIGOT-4302
|
||||||
|
|
||||||
|
return furnacerecipe != null ? furnacerecipe.h() : 200;
|
||||||
|
}
|
||||||
@@ -308,11 +354,38 @@
|
@@ -308,11 +354,38 @@
|
||||||
ItemStack itemstack1 = irecipe.d();
|
ItemStack itemstack1 = irecipe.d();
|
||||||
ItemStack itemstack2 = (ItemStack) this.items.get(2);
|
ItemStack itemstack2 = (ItemStack) this.items.get(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user