mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 06:32:25 +01:00
5692c15b4d
Use a new table beds.bed_position to check if a bed is in use.
19 lines
385 B
Lua
19 lines
385 B
Lua
beds = {}
|
|
beds.player = {}
|
|
beds.bed_position = {}
|
|
beds.pos = {}
|
|
beds.spawn = {}
|
|
|
|
beds.formspec = "size[8,15;true]" ..
|
|
"bgcolor[#080808BB; true]" ..
|
|
"button_exit[2,12;4,0.75;leave;Leave Bed]"
|
|
|
|
local modpath = minetest.get_modpath("beds")
|
|
|
|
-- Load files
|
|
|
|
dofile(modpath .. "/functions.lua")
|
|
dofile(modpath .. "/api.lua")
|
|
dofile(modpath .. "/beds.lua")
|
|
dofile(modpath .. "/spawns.lua")
|