From 90cc3b9659405d86a339d876e4a41b7f24fe4cc9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 16 Jul 2020 20:26:41 +0200 Subject: [PATCH] Fix crash in mcl_mobs --- mods/ENTITIES/mcl_mobs/api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 3ba4d4c93..34fe0ef42 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -1071,7 +1071,7 @@ local do_jump = function(self) end --- blast damage to entities nearby (modified from TNT mod) +-- blast damage to entities nearby local entity_physics = function(pos, radius) radius = radius * 2 @@ -3865,7 +3865,7 @@ function mobs:safe_boom(self, pos, strength) gain = 1.0, max_hear_distance = self.sounds and self.sounds.distance or 32 }, true) - + local radius = strength entity_physics(pos, radius) effect(pos, 32, "tnt_smoke.png", radius * 3, radius * 5, radius, 1, 0) end @@ -3881,7 +3881,7 @@ function mobs:boom(self, pos, strength, fire) mobs:safe_boom(self, pos, strength) end else - mobs:safe_boom(self, pos, radius) + mobs:safe_boom(self, pos, strength) end end