1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-04-17 19:20:22 +02:00

update dates, add sound_play check

This commit is contained in:
tenplus1 2025-03-12 08:03:17 +00:00
parent 0a62f05132
commit b81c2aeab6
2 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2016 TenPlus1
Copyright (c) 2025 TenPlus1
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal