mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-08 22:59:29 -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;
|
||||
int removedCount = 0;
|
||||
for (int i = 0; i < bots.Length; i++) {
|
||||
if (bots[i].Owner.CaselessEq(ownerName)) {
|
||||
if (ownerName.CaselessEq(bots[i].Owner)) {
|
||||
Remove(bots[i], save);
|
||||
removedCount++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user