From 6dee81a6f71422b4559f39c6a8349020503839ca Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 27 Aug 2018 06:50:15 +1000 Subject: [PATCH] SPIGOT-4302: Use defaults when setting unplaced furnaces --- nms-patches/TileEntityFurnace.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nms-patches/TileEntityFurnace.patch b/nms-patches/TileEntityFurnace.patch index 691a1b4a81..bb7892c82f 100644 --- a/nms-patches/TileEntityFurnace.patch +++ b/nms-patches/TileEntityFurnace.patch @@ -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 @@ ItemStack itemstack1 = irecipe.d(); ItemStack itemstack2 = (ItemStack) this.items.get(2);