Update StarWorldServer.cpp
This commit is contained in:
parent
8559a46df2
commit
b2b6c05968
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user