From a009f70c6cf4f7d5929bb396dae3457621ff94de Mon Sep 17 00:00:00 2001 From: Goodlyay Date: Wed, 15 May 2019 05:23:13 -0700 Subject: [PATCH] Fix bot owner of null causing error in /bot remove all [owner name] --- MCGalaxy/Bots/PlayerBot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Bots/PlayerBot.cs b/MCGalaxy/Bots/PlayerBot.cs index 634ba711d..8fc661e52 100644 --- a/MCGalaxy/Bots/PlayerBot.cs +++ b/MCGalaxy/Bots/PlayerBot.cs @@ -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++; }