Fix AIOOBE

By: md_5 <md_5@live.com.au>
This commit is contained in:
Spigot 2013-01-24 19:28:22 +11:00
parent 01b59cf819
commit c1aa17a5ad

View File

@ -209,7 +209,7 @@ index 0000000..1ac8c26
+ buffer[index] = (byte) Block.STONE.id;
+ }
+ }
+ if (++index > buffer.length) {
+ if (++index >= buffer.length) {
+ return;
+ }
+ }