mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Written size does not include int bytes.
This commit is contained in:
1 parent
574f890e58
commit
01cb2117cc
1 file changed
+3
-3
@@ -21,7 +21,7 @@
|
||||
+ if (length == 255) {
|
||||
+ if ((k >> 8) <= this.field_76714_f.size()) { // We're maxed out, so we need to read the proper length from the section
|
||||
+ this.field_76719_c.seek((k >> 8) * 4096);
|
||||
+ length = (this.field_76719_c.readInt() / 4096) + 1;
|
||||
+ length = (this.field_76719_c.readInt() + 4) / 4096 + 1;
|
||||
+ this.field_76719_c.seek(j1 * 4 + 4); //Go back to where we were
|
||||
+ }
|
||||
+ }
|
||||
@@ -41,7 +41,7 @@
|
||||
int k = i & 255;
|
||||
+ if (k == 255) {
|
||||
+ this.field_76719_c.seek(j * 4096);
|
||||
+ k = this.field_76719_c.readInt() / 4096 + 1;
|
||||
+ k = (this.field_76719_c.readInt() + 4) / 4096 + 1;
|
||||
+ }
|
||||
if (j + k > this.field_76714_f.size()) {
|
||||
return null;
|
||||
@@ -62,7 +62,7 @@
|
||||
int k = i & 255;
|
||||
+ if (k == 255) {
|
||||
+ this.field_76719_c.seek(j * 4096);
|
||||
+ k = this.field_76719_c.readInt() / 4096 + 1;
|
||||
+ k = (this.field_76719_c.readInt() + 4) / 4096 + 1;
|
||||
+ }
|
||||
int l = (p_76706_4_ + 5) / 4096 + 1;
|
||||
if (l >= 256) {
|
||||
|
||||
Reference in new issue
Block a user