Fix incorrect logic in world change clumping.

This commit is contained in:
Lex Manos 2014-12-18 08:11:06 -08:00
parent cd4e73edfa
commit 7419c2aa91
1 changed files with 2 additions and 3 deletions

View File

@ -197,7 +197,7 @@
int l; int l;
- if (this.field_73262_e == 64) - if (this.field_73262_e == 64)
+ if (this.field_73262_e == net.minecraftforge.common.ForgeModContainer.clumpingThreshold) + if (this.field_73262_e >= net.minecraftforge.common.ForgeModContainer.clumpingThreshold)
{ {
i = this.field_73264_c.field_77276_a * 16; i = this.field_73264_c.field_77276_a * 16;
j = this.field_73264_c.field_77275_b * 16; j = this.field_73264_c.field_77275_b * 16;
@ -213,9 +213,8 @@
else else
{ {
this.func_151251_a(new S22PacketMultiBlockChange(this.field_73262_e, this.field_151254_d, PlayerManager.this.field_72701_a.func_72964_e(this.field_73264_c.field_77276_a, this.field_73264_c.field_77275_b))); this.func_151251_a(new S22PacketMultiBlockChange(this.field_73262_e, this.field_151254_d, PlayerManager.this.field_72701_a.func_72964_e(this.field_73264_c.field_77276_a, this.field_73264_c.field_77275_b)));
-
+ } + }
+
+ { //Forge: Send only the tile entities that are updated, Adding this brace lets us keep the indent and the patch small + { //Forge: Send only the tile entities that are updated, Adding this brace lets us keep the indent and the patch small
+ WorldServer world = PlayerManager.this.field_72701_a; + WorldServer world = PlayerManager.this.field_72701_a;
for (i = 0; i < this.field_73262_e; ++i) for (i = 0; i < this.field_73262_e; ++i)