Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: wrong count reported in !voxels cleanup asteroids
  • Loading branch information
ryo0ka committed Oct 5, 2025
commit 9c3823496eb6bcc4097bf7a2eb1c87e282987e22
4 changes: 2 additions & 2 deletions Essentials/Commands/VoxelModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ public void CleanupAsteroids(bool deleteStorage = false)
if (map.StorageName == null || map.Storage.DataProvider == null)
continue;

count++;

var s = map.PositionComp.WorldVolume;
var nearEntities = new List<MyEntity>();

Expand All @@ -118,6 +116,8 @@ public void CleanupAsteroids(bool deleteStorage = false)
if (nearEntities.Any(e => e is MyCubeGrid || e is MyCharacter))
continue;

count++;

long id = map.EntityId;

if (deleteStorage)
Expand Down