Update StarWorldServer.cpp

This commit is contained in:
Kae 2024-03-17 15:12:08 +11:00
parent 8559a46df2
commit b2b6c05968

View File

@ -1508,10 +1508,10 @@ void WorldServer::updateTileEntityTiles(TileEntityPtr const& entity, bool removi
tile->rootSource = {};
bool updatedTile = false;
if (tile->foreground == materialSpace.material) {
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);
tile->foreground = EmptyMaterialId;
tile->foregroundMod = NoModId;
updatedTile = true;
}
if (tile->updateObjectCollision(CollisionKind::None)) {