mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-16 20:42:07 +01:00
Fix AIOOBE
This commit is contained in:
parent
0c9154899b
commit
21a8ef9729
@ -209,7 +209,7 @@ index 0000000..1ac8c26
|
|||||||
+ buffer[index] = (byte) Block.STONE.id;
|
+ buffer[index] = (byte) Block.STONE.id;
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ if (++index > buffer.length) {
|
+ if (++index >= buffer.length) {
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user