mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-01 07:50:23 +02:00
update dates, add sound_play check
This commit is contained in:
6
api.lua
6
api.lua
@ -18,7 +18,7 @@ end
|
||||
-- Global table
|
||||
|
||||
mobs = {
|
||||
mod = "redo", version = "20250209",
|
||||
mod = "redo", version = "20250312",
|
||||
spawning_mobs = {}, translate = S,
|
||||
node_snow = has(minetest.registered_aliases["mapgen_snow"])
|
||||
or has("mcl_core:snow") or has("default:snow") or "air",
|
||||
@ -3726,7 +3726,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, inter
|
||||
return
|
||||
end
|
||||
|
||||
-- change position to node above
|
||||
-- change position to above node
|
||||
pos.y = pos.y + 1
|
||||
|
||||
-- are we spawning within height limits?
|
||||
@ -4610,6 +4610,8 @@ if settings:get_bool("mobs_can_hear") ~= false then
|
||||
|
||||
minetest.sound_play = function(spec, param, eph)
|
||||
|
||||
if type(spec) == "table" then return end
|
||||
|
||||
local def = {} ; param = param or {}
|
||||
|
||||
-- store sound position (ignore player and object positioning as background)
|
||||
|
Reference in New Issue
Block a user