Add a garbage collection component for grid movement (#7776)
If we move a station and there's thousands of bullets in the way we shouldn't just indefinitely lag the server as a result.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace Content.Server.Shuttles.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Cleanup component that deletes the entity if it has a cross-grid collision.
|
||||
/// Useful for small, unimportant items like bullets to avoid generating many contacts.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
public sealed class SpaceGarbageComponent : Component {}
|
||||
Reference in New Issue
Block a user