mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-30 14:00:22 +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
|
-- global table
|
||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo", version = "20250721",
|
mod = "redo", version = "20250729",
|
||||||
spawning_mobs = {}, translate = S,
|
spawning_mobs = {}, translate = S,
|
||||||
node_snow = has(core.registered_aliases["mapgen_snow"])
|
node_snow = has(core.registered_aliases["mapgen_snow"])
|
||||||
or has("mcl_core:snow") or has("default:snow") or "air",
|
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)
|
function mobs:boom(self, pos, node_damage_radius, entity_radius, texture)
|
||||||
|
|
||||||
|
if not pos then return end
|
||||||
|
|
||||||
texture = texture or "mobs_tnt_smoke.png"
|
texture = texture or "mobs_tnt_smoke.png"
|
||||||
|
|
||||||
if mobs_griefing then
|
if mobs_griefing then
|
||||||
|
Reference in New Issue
Block a user