1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-07-29 21:40:21 +02:00

nil check for mobs:boom pos

This commit is contained in:
tenplus1
2025-07-29 07:16:45 +01:00
parent ae21b80f08
commit dc29ed09e6

View File

@ -18,7 +18,7 @@ end
-- global table
mobs = {
mod = "redo", version = "20250721",
mod = "redo", version = "20250729",
spawning_mobs = {}, translate = S,
node_snow = has(core.registered_aliases["mapgen_snow"])
or has("mcl_core:snow") or has("default:snow") or "air",
@ -3937,6 +3937,8 @@ end
function mobs:boom(self, pos, node_damage_radius, entity_radius, texture)
if not pos then return end
texture = texture or "mobs_tnt_smoke.png"
if mobs_griefing then