1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-01-08 08:50:20 +01:00

fix boom texture

This commit is contained in:
tenplus1 2024-11-22 14:13:22 +00:00
parent b8052c817c
commit 6a7c221ce1

View File

@ -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)