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,4 +1,4 @@
|
|||
mcl_init
|
||||
mcl_util
|
||||
mcl_worlds
|
||||
mesecons
|
||||
doc?
|
||||
|
|
|
@ -89,10 +89,10 @@ minetest.register_globalstep(function(dtime)
|
|||
local players = minetest.get_connected_players()
|
||||
for p, player in ipairs(players) do
|
||||
for s, stack in ipairs(player:get_inventory():get_list("main")) do
|
||||
local _, dim = mcl_util.y_to_layer(player:getpos().y)
|
||||
local dim = mcl_worlds.pos_to_dimension(player:get_pos())
|
||||
local frame
|
||||
-- Clocks do not work in certain zones
|
||||
if not mcl_util.clock_works(player:getpos()) then
|
||||
if not mcl_worlds.clock_works(player:getpos()) then
|
||||
frame = random_frame
|
||||
else
|
||||
frame = now
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue