Skip to content

Commit af428fa

Browse files
authored
Merge pull request #218 from HnZGaming/fix/voxel-cleanup-asteroids-count
Fix `!voxel cleanup asteroids` reporting wrong number of processed entities
2 parents fcf277d + 9c38234 commit af428fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Essentials/Commands/VoxelModule.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ public void CleanupAsteroids(bool deleteStorage = false)
108108
if (map.StorageName == null || map.Storage.DataProvider == null)
109109
continue;
110110

111-
count++;
112-
113111
var s = map.PositionComp.WorldVolume;
114112
var nearEntities = new List<MyEntity>();
115113

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

119+
count++;
120+
121121
long id = map.EntityId;
122122

123123
if (deleteStorage)

0 commit comments

Comments
 (0)