mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-12 16:56:33 -04:00
Fix bot owner of null causing error in
/bot remove all [owner name]
This commit is contained in:
parent
ea89267ac6
commit
a009f70c6c
@ -106,7 +106,7 @@ namespace MCGalaxy {
|
|||||||
PlayerBot[] bots = lvl.Bots.Items;
|
PlayerBot[] bots = lvl.Bots.Items;
|
||||||
int removedCount = 0;
|
int removedCount = 0;
|
||||||
for (int i = 0; i < bots.Length; i++) {
|
for (int i = 0; i < bots.Length; i++) {
|
||||||
if (bots[i].Owner.CaselessEq(ownerName)) {
|
if (ownerName.CaselessEq(bots[i].Owner)) {
|
||||||
Remove(bots[i], save);
|
Remove(bots[i], save);
|
||||||
removedCount++;
|
removedCount++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user