SEModCommunity / SE-Community-Mod-API

Space Engineers Community Modding API
GNU Lesser General Public License v3.0
60 stars 47 forks source link

BUG: CubeGrid.Dispose() special case issue when deleting blocks individually #152

Open Tyrsis opened 9 years ago

Tyrsis commented 9 years ago

I have run into some fringe cases where ships that are built strangely (have cubeblocks at the end of the cubeblock list that is attached to the grid with only 1 block) will sometimes break off before being disposed and create their own cubegrid (like they were shot off the ship). This causes what I like to call, "float parts". Which in itself isn't too bad unless you're trying to bring back an entity in the same position from where it was removed from. Then that floating part becomes basically a bomb that destroys the entity that appears on it.

In the API if you remove the block by block deletion, it still removes the grid seemingly fine, and solves the issue.

fvgoulet commented 9 years ago

@Tyrsis Please provide a step by step list of actions to be done to reproduce the issue.