Disable weather in Nether and End and Void

This commit is contained in:
Wuzzy 2017-08-22 18:18:53 +02:00
parent 7ade843e29
commit fe31afc119
5 changed files with 41 additions and 19 deletions

View file

@ -31,8 +31,8 @@ minetest.register_globalstep(function(dtime)
local pos = player:getpos()
local _, dim = mcl_util.y_to_layer(pos.y)
local compass_image
-- Compasses do not work in the End, Nether or the Void
if dim == "end" or dim == "nether" or dim == "void" then
-- Compasses do not work in certain zones
if not mcl_util.compass_works(player:getpos()) then
compass_image = random_frame
else
local spawn = {x=0,y=0,z=0}