From 0ff6cb2837ae735c29add6a8c259408de1af47aa Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 22 Aug 2017 18:58:53 +0200 Subject: [PATCH] Fix broken compass and clocks --- mods/CORE/mcl_util/init.lua | 2 +- mods/ITEMS/mcl_compass/init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_util/init.lua b/mods/CORE/mcl_util/init.lua index e2357b8d99..e3c57466d3 100644 --- a/mods/CORE/mcl_util/init.lua +++ b/mods/CORE/mcl_util/init.lua @@ -398,7 +398,7 @@ end function mcl_util.compass_works(pos) -- It doesn't work in Nether and the End, but it works in the Overworld and in the high part of the void below local _, dim = mcl_util.y_to_layer(pos.y) - if dim ~= "nether" or dim ~= "end" then + if dim == "nether" or dim == "end" then return false elseif dim == "void" then return pos.y <= mcl_vars.mg_overworld_max and pos.y >= mcl_vars.mg_overworld_min - 64 diff --git a/mods/ITEMS/mcl_compass/init.lua b/mods/ITEMS/mcl_compass/init.lua index 03edca0163..c64b5dc66d 100644 --- a/mods/ITEMS/mcl_compass/init.lua +++ b/mods/ITEMS/mcl_compass/init.lua @@ -32,7 +32,7 @@ minetest.register_globalstep(function(dtime) local _, dim = mcl_util.y_to_layer(pos.y) local compass_image -- Compasses do not work in certain zones - if not mcl_util.compass_works(player:getpos()) then + if not mcl_util.compass_works(pos) then compass_image = random_frame else local spawn = {x=0,y=0,z=0}