From 714ff868d1f99504a391ee1dfc9e314f18224180 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 15 Dec 2019 15:33:11 +1100 Subject: [PATCH] SPIGOT-5455: Mobs do not ignite due to sun in extra worlds By: md_5 --- paper-server/nms-patches/World.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/paper-server/nms-patches/World.patch b/paper-server/nms-patches/World.patch index 260f3cc424..d50b9309fe 100644 --- a/paper-server/nms-patches/World.patch +++ b/paper-server/nms-patches/World.patch @@ -295,6 +295,20 @@ if (isOutsideWorld(blockposition)) { return Blocks.VOID_AIR.getBlockData(); } else { +@@ -306,11 +510,11 @@ + } + + public boolean J() { +- return this.worldProvider.getDimensionManager() == DimensionManager.OVERWORLD && this.c < 4; ++ return this.worldProvider.getDimensionManager().getType() == DimensionManager.OVERWORLD && this.c < 4; // CraftBukkit + } + + public boolean K() { +- return this.worldProvider.getDimensionManager() == DimensionManager.OVERWORLD && !this.J(); ++ return this.worldProvider.getDimensionManager().getType() == DimensionManager.OVERWORLD && !this.J(); // CraftBukkit + } + + @Override @@ -432,9 +636,11 @@ TileEntity tileentity1 = (TileEntity) this.tileEntityListPending.get(i);