From 9bda60d8b488103b5ae5fd75d474eca7d7069afd Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 29 Dec 2020 08:45:45 +1100 Subject: [PATCH] SPIGOT-6296: Server crashes when burning something at y-level 0 By: md_5 --- paper-server/nms-patches/PlayerChunk.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/PlayerChunk.patch b/paper-server/nms-patches/PlayerChunk.patch index 6259d805e2..d35f4afb43 100644 --- a/paper-server/nms-patches/PlayerChunk.patch +++ b/paper-server/nms-patches/PlayerChunk.patch @@ -41,7 +41,7 @@ if (chunk != null) { byte b0 = (byte) SectionPosition.a(blockposition.getY()); -+ if (b0 >= this.dirtyBlocks.length) return; // CraftBukkit - SPIGOT-6086 ++ if (b0 < 0 || b0 >= this.dirtyBlocks.length) return; // CraftBukkit - SPIGOT-6086, SPIGOT-6296 if (this.dirtyBlocks[b0] == null) { this.p = true; this.dirtyBlocks[b0] = new ShortArraySet();