Attempt to prevent a NPE when MC renders a lot of things at once.

This commit is contained in:
Lex Manos 2014-01-06 20:25:34 -08:00
parent 4e45156eaf
commit aab5b04a6d
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@
+ if (rawBufferSize > 0x20000 && field_147569_p < (rawBufferSize << 3))
+ {
+ rawBufferSize = 0;
+ rawBuffer = null;
+ rawBufferSize = 0x10000;
+ rawBuffer = new int[rawBufferSize];
+ }
+
int i = this.field_147569_p * 4;