mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-13 18:01:57 -04:00
Beds: Replace hardcoded values of day interval with constants (#2990)
This commit is contained in:
parent
508a9070a0
commit
2e8ac46120
3 changed files with 8 additions and 1 deletions
|
@ -186,7 +186,7 @@ function beds.on_rightclick(pos, player)
|
|||
local ppos = player:get_pos()
|
||||
local tod = minetest.get_timeofday()
|
||||
|
||||
if tod > 0.2 and tod < 0.805 then
|
||||
if tod > beds.day_interval.start and tod < beds.day_interval.finish then
|
||||
if beds.player[name] then
|
||||
lay_down(player, nil, nil, false)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue