Skip to content

Commit 8e35cc7

Browse files
Casimir255Yuri.Sh
authored andcommitted
Merge pull request TorchAPI#218 from HnZGaming/fix/voxel-cleanup-asteroids-count
Fix `!voxel cleanup asteroids` reporting wrong number of processed entities
1 parent 99dafce commit 8e35cc7

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
@@ -112,8 +112,6 @@ public void CleanupAsteroids(bool deleteStorage = false)
112112
if (map.StorageName == null || map.Storage.DataProvider == null)
113113
continue;
114114

115-
count++;
116-
117115
var s = map.PositionComp.WorldVolume;
118116
var nearEntities = new List<MyEntity>();
119117

@@ -122,6 +120,8 @@ public void CleanupAsteroids(bool deleteStorage = false)
122120
if (nearEntities.Any(e => e is MyCubeGrid || e is MyCharacter))
123121
continue;
124122

123+
count++;
124+
125125
long id = map.EntityId;
126126

127127
if (deleteStorage)

0 commit comments

Comments
 (0)