You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the OnlyOnThing option for CommunityCoreLibrary.RestrictedPlacement_Comp a blueprint is not removed/destroyed when the underlying thing is destroyed.
Then activate god mode and de-construct the wall, the blueprint is not removed. Once the blueprint is constructed the building is destroyed with the "A support was removed" message. Same behavior happens without god mode and letting a colonist de-construct the wall.
The text was updated successfully, but these errors were encountered:
This could take a little while to solve. The problem is that the blueprint doesn't carry the thing comp to tick yet, so it can't check that it's restrictions have changed.
I think a possible solution to this is to switch from the comp checking the status of the building to a map component which does a periodic scan. This way buildings and blueprints alike can be destroyed as well as removing the requirement for the building itself to tick.
When using the OnlyOnThing option for CommunityCoreLibrary.RestrictedPlacement_Comp a blueprint is not removed/destroyed when the underlying thing is destroyed.
Tested by building on a wall with this XML:
Then activate god mode and de-construct the wall, the blueprint is not removed. Once the blueprint is constructed the building is destroyed with the "A support was removed" message. Same behavior happens without god mode and letting a colonist de-construct the wall.
The text was updated successfully, but these errors were encountered: