Merge Lodestone base #7

Merged
chmodsayshello merged 8 commits from Lodestone into Lodestone_tabspace_fix_2 2022-03-28 16:21:25 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 97b10f15ef - Show all commits

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