mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-09 17:30:21 +01:00
fix boom texture
This commit is contained in:
parent
b8052c817c
commit
6a7c221ce1
4
api.lua
4
api.lua
@ -4184,6 +4184,8 @@ end
|
|||||||
|
|
||||||
function mobs:boom(self, pos, node_damage_radius, entity_radius, texture)
|
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
|
if mobs_griefing and minetest.get_modpath("tnt") and tnt and tnt.boom
|
||||||
and not minetest.is_protected(pos, "") then
|
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,
|
damage_radius = entity_radius,
|
||||||
sound = self.sounds and self.sounds.explode,
|
sound = self.sounds and self.sounds.explode,
|
||||||
explode_center = true,
|
explode_center = true,
|
||||||
tiles = {(texture or "tnt_smoke.png")}
|
tiles = texture
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
mobs:safe_boom(self, pos, node_damage_radius, texture)
|
mobs:safe_boom(self, pos, node_damage_radius, texture)
|
||||||
|
Loading…
Reference in New Issue
Block a user