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 = {};
|
tile->rootSource = {};
|
||||||
bool updatedTile = false;
|
bool updatedTile = false;
|
||||||
if (tile->foreground == materialSpace.material) {
|
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
|
if (!isRealMaterial(tile->foreground))// if the world is old the materialSpace's collision may still be in the tile
|
||||||
tile->updateCollision(CollisionKind::None);
|
tile->updateCollision(CollisionKind::None);
|
||||||
|
tile->foreground = EmptyMaterialId;
|
||||||
|
tile->foregroundMod = NoModId;
|
||||||
updatedTile = true;
|
updatedTile = true;
|
||||||
}
|
}
|
||||||
if (tile->updateObjectCollision(CollisionKind::None)) {
|
if (tile->updateObjectCollision(CollisionKind::None)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user