aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-04-08 15:05:42 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-04-08 15:05:42 +0300
commit55bd30cf68f36021ffe159a147fd43792d229512 (patch)
treebf0907d202d7d944c1421fd6acd85e45c7f967ec
parentac284aceee93e54152e0d362c88e9c07233cf4e8 (diff)
downloadMundus-55bd30cf68f36021ffe159a147fd43792d229512.tar
Mundus-55bd30cf68f36021ffe159a147fd43792d229512.tar.gz
Mundus-55bd30cf68f36021ffe159a147fd43792d229512.zip
Fixed bug, where structures that drop themselves would crash the game if the inventory is full (+ updated the executable)
-rw-r--r--Mundus Build 08-04-2020 No3.exe (renamed from Mundus Build 08-04-2020.exe)bin539648 -> 539648 bytes
-rw-r--r--Mundus/Service/Mobs/MobTerraforming.cs2
2 files changed, 1 insertions, 1 deletions
diff --git a/Mundus Build 08-04-2020.exe b/Mundus Build 08-04-2020 No3.exe
index 0e547a6..6629492 100644
--- a/Mundus Build 08-04-2020.exe
+++ b/Mundus Build 08-04-2020 No3.exe
Binary files 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());
}