rewrite self-addressed comment that i forgot to remove

This commit is contained in:
chmodsayshello 2022-03-27 10:03:27 +00:00
parent a493a6cd5c
commit 97b10f15ef
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function mcl_compass.get_compass_image(pos, dir, x, y, z)
local _, dim = mcl_worlds.y_to_layer(y)
local _, playerdim = mcl_worlds.y_to_layer(pos.y)
if dim == playerdim then --"chmod, why are you checking this, someone already checked if the diemension is valid above" Thats right, but that only checks if a player is in the overworld, this if statement checks if the player and the compass target are in the same diemension, so a lodestone compass from the end or the nether wouldn't work in the overworld etc.
if dim == playerdim then --Check if player and compass target are in the same dimension, above check is just if the diemension is valid for the non lodestone compass
local spawn = {x=x,y=y,z=z}
local ssp = minetest.setting_get_pos("static_spawnpoint")
if ssp then