From 6a7c221ce10c0efe358add23c26410939d25f832 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 22 Nov 2024 14:13:22 +0000 Subject: [PATCH] fix boom texture --- api.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 37caa73..b38fd4b 100644 --- a/api.lua +++ b/api.lua @@ -4184,6 +4184,8 @@ end function mobs:boom(self, pos, node_damage_radius, entity_radius, texture) + texture = texture or "tnt_smoke.png" + if mobs_griefing and minetest.get_modpath("tnt") and tnt and tnt.boom and not minetest.is_protected(pos, "") then @@ -4192,7 +4194,7 @@ function mobs:boom(self, pos, node_damage_radius, entity_radius, texture) damage_radius = entity_radius, sound = self.sounds and self.sounds.explode, explode_center = true, - tiles = {(texture or "tnt_smoke.png")} + tiles = texture }) else mobs:safe_boom(self, pos, node_damage_radius, texture)