Tweak packet56 to see if this resolves the apparent worldgen derpiness

This commit is contained in:
Christian 2012-12-21 09:24:13 -05:00
parent 3d5197ea33
commit ced432f31d

View file

@ -4,13 +4,13 @@
var9 += 2048 * var7;
}
+ int msb = 0; //BugFix: MC does not read the MSB array from the packet properly, causing issues for servers that use blocks > 256
+ for (int x = 0; x < 16; x++)
+ {
+ msb += (field_73588_b[var6] >> x) & 1;
+ }
+ var9 += (2048 * msb);
+
+// int msb = 0; //BugFix: MC does not read the MSB array from the packet properly, causing issues for servers that use blocks > 256
+// for (int x = 0; x < 16; x++)
+// {
+// msb += (field_73588_b[var6] >> x) & 1;
+// }
+// var9 += (2048 * msb);
+//
this.field_73584_f[var6] = new byte[var9];
System.arraycopy(var3, var5, this.field_73584_f[var6], 0, var9);
var5 += var9;