Fix tile-events returns (#37502)

* Fix tile-events returns

Should really be continues.

* More

* More optimisations
This commit is contained in:
metalgearsloth
2025-05-16 22:22:20 +10:00
committed by GitHub
parent 1b79b97d2c
commit fca7337bcf
8 changed files with 34 additions and 26 deletions

View File

@@ -125,10 +125,10 @@ namespace Content.Shared.SubFloor
foreach (var change in args.Changes)
{
if (change.OldTile.IsEmpty)
return; // Nothing is anchored here anyways.
continue; // Nothing is anchored here anyways.
if (change.NewTile.IsEmpty)
return; // Anything that was here will be unanchored anyways.
continue; // Anything that was here will be unanchored anyways.
UpdateTile(args.Entity, args.Entity.Comp, change.GridIndices);
}