From 55bd30cf68f36021ffe159a147fd43792d229512 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 8 Apr 2020 15:05:42 +0300 Subject: Fixed bug, where structures that drop themselves would crash the game if the inventory is full (+ updated the executable) --- Mundus Build 08-04-2020 No3.exe | Bin 0 -> 539648 bytes Mundus Build 08-04-2020.exe | Bin 539648 -> 0 bytes Mundus/Service/Mobs/MobTerraforming.cs | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 Mundus Build 08-04-2020 No3.exe delete mode 100644 Mundus Build 08-04-2020.exe diff --git a/Mundus Build 08-04-2020 No3.exe b/Mundus Build 08-04-2020 No3.exe new file mode 100644 index 0000000..6629492 Binary files /dev/null and b/Mundus Build 08-04-2020 No3.exe differ diff --git a/Mundus Build 08-04-2020.exe b/Mundus Build 08-04-2020.exe deleted file mode 100644 index 0e547a6..0000000 Binary files a/Mundus Build 08-04-2020.exe and /dev/null differ diff --git a/Mundus/Service/Mobs/MobTerraforming.cs b/Mundus/Service/Mobs/MobTerraforming.cs index 6111676..1105ce0 100644 --- a/Mundus/Service/Mobs/MobTerraforming.cs +++ b/Mundus/Service/Mobs/MobTerraforming.cs @@ -43,7 +43,7 @@ namespace Mundus.Service.Mobs { LMI.Player.Inventory.AppendToItems(new Material((Material)selStructure.GetDrop())); } } - else { + else if (LMI.Player.Inventory.Items.Contains(null)) { LMI.Player.Inventory.AppendToItems((Structure)selStructure.GetDrop()); } -- cgit v1.2.3