mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-6296: Server crashes when burning something at y-level 0
This commit is contained in:
parent
72c5e7477a
commit
b5e5adc428
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
||||||
if (chunk != null) {
|
if (chunk != null) {
|
||||||
byte b0 = (byte) SectionPosition.a(blockposition.getY());
|
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) {
|
if (this.dirtyBlocks[b0] == null) {
|
||||||
this.p = true;
|
this.p = true;
|
||||||
this.dirtyBlocks[b0] = new ShortArraySet();
|
this.dirtyBlocks[b0] = new ShortArraySet();
|
||||||
|
|
Loading…
Add table
Reference in a new issue