Tweak setBlock in update tick - it should only send serverside updates for

source blocks. Experimental attempt to fix worldgen issues for fluid blocks
This commit is contained in:
cpw 2013-07-28 19:25:51 +02:00
parent 5c5cf3e7e7
commit c3f62ed8bf

View file

@ -128,9 +128,10 @@ public class BlockFluidClassic extends BlockFluidBase
}
}
}
else if (quantaRemaining > quantaPerBlock)
// This is a "source" block, set meta to zero, and send a server only update
else if (quantaRemaining >= quantaPerBlock)
{
world.setBlockMetadataWithNotify(x, y, z, 0, 3);
world.setBlockMetadataWithNotify(x, y, z, 0, 2);
}
// Flow vertically if possible