mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
SPIGOT-6296: Server crashes when burning something at y-level 0
By: md_5 <git@md-5.net>
This commit is contained in:
parent
3e80d2e4ec
commit
9bda60d8b4
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue