mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-04-19 12:00:20 +02:00
update dates, add sound_play check
This commit is contained in:
parent
0a62f05132
commit
b81c2aeab6
6
api.lua
6
api.lua
@ -18,7 +18,7 @@ end
|
|||||||
-- Global table
|
-- Global table
|
||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo", version = "20250209",
|
mod = "redo", version = "20250312",
|
||||||
spawning_mobs = {}, translate = S,
|
spawning_mobs = {}, translate = S,
|
||||||
node_snow = has(minetest.registered_aliases["mapgen_snow"])
|
node_snow = has(minetest.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",
|
||||||
@ -3726,7 +3726,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, inter
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- change position to node above
|
-- change position to above node
|
||||||
pos.y = pos.y + 1
|
pos.y = pos.y + 1
|
||||||
|
|
||||||
-- are we spawning within height limits?
|
-- 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)
|
minetest.sound_play = function(spec, param, eph)
|
||||||
|
|
||||||
|
if type(spec) == "table" then return end
|
||||||
|
|
||||||
local def = {} ; param = param or {}
|
local def = {} ; param = param or {}
|
||||||
|
|
||||||
-- store sound position (ignore player and object positioning as background)
|
-- store sound position (ignore player and object positioning as background)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
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
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user