Fix bot owner of null causing error in

/bot remove all [owner name]
This commit is contained in:
Goodlyay 2019-05-15 05:23:13 -07:00
parent ea89267ac6
commit a009f70c6c

View File

@ -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++;
}