forked from MineClone5/MineClone5
Merge Lodestone base #7
|
@ -21,7 +21,7 @@ function mcl_compass.get_compass_image(pos, dir, x, y, z)
|
||||||
local _, dim = mcl_worlds.y_to_layer(y)
|
local _, dim = mcl_worlds.y_to_layer(y)
|
||||||
local _, playerdim = mcl_worlds.y_to_layer(pos.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 spawn = {x=x,y=y,z=z}
|
||||||
local ssp = minetest.setting_get_pos("static_spawnpoint")
|
local ssp = minetest.setting_get_pos("static_spawnpoint")
|
||||||
if ssp then
|
if ssp then
|
||||||
|
|
Loading…
Reference in New Issue