mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Fix Erronius entity deletion on grid deletion from SetTiles() (#6367)
Don't delete the grid *before* we raise the event??? Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
02b64b7386
commit
df98bca4bc
@@ -876,12 +876,12 @@ public abstract partial class SharedMapSystem
|
||||
chunk.SuppressCollisionRegeneration = false;
|
||||
}
|
||||
|
||||
RegenerateCollision(uid, grid, modified);
|
||||
|
||||
// Notify of all tile changes in one event
|
||||
var ev = new TileChangedEvent((uid, grid), tileChanges.ToArray());
|
||||
RaiseLocalEvent(uid, ref ev, true);
|
||||
|
||||
RegenerateCollision(uid, grid, modified);
|
||||
|
||||
// Back to normal
|
||||
MapManager.SuppressOnTileChanged = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user