diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-17 15:12:08 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-17 15:12:08 +1100 |
commit | b2b6c05968ac606a970ffd496eda7a3abbfe3fd9 (patch) | |
tree | 54bad94a9c22c1c534c62bbe1ffffa3a4fd371dc | |
parent | 8559a46df2ad026571ba7c132d9ce4d2c3392f56 (diff) |
Update StarWorldServer.cpp
-rw-r--r-- | source/game/StarWorldServer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarWorldServer.cpp b/source/game/StarWorldServer.cpp index a718ae8..e28c666 100644 --- a/source/game/StarWorldServer.cpp +++ b/source/game/StarWorldServer.cpp @@ -1508,10 +1508,10 @@ void WorldServer::updateTileEntityTiles(TileEntityPtr const& entity, bool removi tile->rootSource = {}; bool updatedTile = false; if (tile->foreground == materialSpace.material) { + if (!isRealMaterial(tile->foreground))// if the world is old the materialSpace's collision may still be in the tile + tile->updateCollision(CollisionKind::None); tile->foreground = EmptyMaterialId; tile->foregroundMod = NoModId; - if (!isRealMaterial(tile->foreground)) // if the world is old the materialSpace's collision may still be in the tile - tile->updateCollision(CollisionKind::None); updatedTile = true; } if (tile->updateObjectCollision(CollisionKind::None)) { |