|
|
@@ -939,7 +939,7 @@ void Chunk::sendBlockInfo(Framework::Vec3<int> location)
|
|
|
msg[0] = 0; // set block
|
|
|
int typeId = blockIds[location.z] ? blockIds[location.z][index] : 0;
|
|
|
*(unsigned short*)(msg + 1) = typeId;
|
|
|
- *(int*)(msg + 3) = index;
|
|
|
+ *(int*)(msg + 3) = index * WORLD_HEIGHT + location.z;
|
|
|
char state = 0;
|
|
|
const BlockType* type = Game::INSTANCE->zBlockType(typeId);
|
|
|
if (type->isFluid())
|