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:
4
api.lua
4
api.lua
@ -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
|
||||
|
Reference in New Issue
Block a user