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 = {}; tile->rootSource = {};
bool updatedTile = false; bool updatedTile = false;
if (tile->foreground == materialSpace.material) { 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->foreground = EmptyMaterialId;
tile->foregroundMod = NoModId; 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; updatedTile = true;
} }
if (tile->updateObjectCollision(CollisionKind::None)) { if (tile->updateObjectCollision(CollisionKind::None)) {