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)) {