Skip to content

Commit

Permalink
[ClientWorld] No longer accepting chunks when current dimension isn't…
Browse files Browse the repository at this point in the history
… defined.
  • Loading branch information
Unarelith committed Jun 23, 2020
1 parent bfed2aa commit dc41400
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/client/world/ClientWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ void ClientWorld::changeDimension(u16 dimensionID) {
}

void ClientWorld::receiveChunkData(Network::Packet &packet) {
if (!m_dimension) return;

s32 cx, cy, cz;
packet >> cx >> cy >> cz;

Expand Down

0 comments on commit dc41400

Please sign in to comment.