Move world-related functions to mcl_worlds
This commit is contained in:
parent
06ef86ddd3
commit
b0c87f74fe
35 changed files with 212 additions and 202 deletions
|
@ -1,5 +1,5 @@
|
|||
mcl_sounds?
|
||||
mcl_util?
|
||||
mcl_worlds?
|
||||
mcl_wool?
|
||||
mcl_dye?
|
||||
mcl_tnt?
|
||||
|
|
|
@ -162,8 +162,8 @@ function mcl_beds.on_rightclick(pos, player)
|
|||
if player:get_attribute("mcl_beds:sleeping") == "true" then
|
||||
return
|
||||
end
|
||||
if minetest.get_modpath("mcl_init") then
|
||||
local _, dim = mcl_util.y_to_layer(pos.y)
|
||||
if minetest.get_modpath("mcl_worlds") then
|
||||
local dim = mcl_worlds.pos_to_dimension(pos)
|
||||
if dim == "nether" or dim == "end" then
|
||||
-- Bed goes BOOM in the Nether or End.
|
||||
minetest.remove_node(pos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue