Disable weather in Nether and End and Void
This commit is contained in:
parent
7ade843e29
commit
fe31afc119
5 changed files with 41 additions and 19 deletions
|
@ -91,8 +91,8 @@ minetest.register_globalstep(function(dtime)
|
|||
for s, stack in ipairs(player:get_inventory():get_list("main")) do
|
||||
local _, dim = mcl_util.y_to_layer(player:getpos().y)
|
||||
local frame
|
||||
-- Clocks do not work in the End, Nether or the Void
|
||||
if dim == "end" or dim == "nether" or dim == "void" then
|
||||
-- Clocks do not work in certain zones
|
||||
if not mcl_util.clock_works(player:getpos()) then
|
||||
frame = random_frame
|
||||
else
|
||||
frame = now
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue