format everything
This commit is contained in:
1 parent
3e813592e4
commit
dd93cfe91e
380 files changed
+2698
-2595
No files matched your search
@@ -380,9 +380,8 @@ bool PlayerChunkMap::PlayerChunk::broadcastChanges(bool allowRegionUpdate) {
|
||||
// 4J As we only get here if changes is less than
|
||||
// MAX_CHANGES_BEFORE_RESEND (10) we only need to send a byte value in
|
||||
// the packet
|
||||
broadcast(
|
||||
std::make_shared<ChunkTilesUpdatePacket>(
|
||||
pos.x, pos.z, changedTiles, (uint8_t)changes, level));
|
||||
broadcast(std::make_shared<ChunkTilesUpdatePacket>(
|
||||
pos.x, pos.z, changedTiles, (uint8_t)changes, level));
|
||||
for (int i = 0; i < changes; i++) {
|
||||
int x = pos.x * 16 + ((changedTiles[i] >> 12) & 15);
|
||||
int y = ((changedTiles[i]) & 255);
|
||||
|
||||
Reference in new issue
Block a user