Check if object matspace is a biome metamaterial when removing old matspaces
#95
This commit is contained in:
parent
cb547d0bc6
commit
dc37c9bdb8
@ -1534,7 +1534,7 @@ void WorldServer::updateTileEntityTiles(TileEntityPtr const& entity, bool removi
|
|||||||
tile->rootSource = {};
|
tile->rootSource = {};
|
||||||
bool updatedTile = false;
|
bool updatedTile = false;
|
||||||
bool updatedCollision = false;
|
bool updatedCollision = false;
|
||||||
if (tile->foreground == materialSpace.material) {
|
if (isBiomeMaterial(materialSpace.material) || tile->foreground == materialSpace.material) {
|
||||||
// if the world is old, the materialSpace's collision may still be in the tile
|
// if the world is old, the materialSpace's collision may still be in the tile
|
||||||
tile->foreground = EmptyMaterialId;
|
tile->foreground = EmptyMaterialId;
|
||||||
tile->foregroundMod = NoModId;
|
tile->foregroundMod = NoModId;
|
||||||
@ -1555,7 +1555,6 @@ void WorldServer::updateTileEntityTiles(TileEntityPtr const& entity, bool removi
|
|||||||
|
|
||||||
if (removing) {
|
if (removing) {
|
||||||
m_tileEntitySpaces.remove(entity->entityId());
|
m_tileEntitySpaces.remove(entity->entityId());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// add new material spaces and update the known material spaces entry
|
// add new material spaces and update the known material spaces entry
|
||||||
List<MaterialSpace> passedSpaces;
|
List<MaterialSpace> passedSpaces;
|
||||||
|
Loading…
Reference in New Issue
Block a user