mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 14:16:06 +02:00
Added compassgps mod
- Added compassgps mod (solves #53) - Added /MFF flags on modified lines of worldedge/init.lua, and used `y+1` instead of `y` for `setpos()`
This commit is contained in:
@ -62,10 +62,10 @@ minetest.register_globalstep(function(dtime)
|
||||
|
||||
if pos.z >= edge then
|
||||
newpos = {x = pos.x, y = 10, z = -newedge}
|
||||
newpos.y = get_surface_pos(newpos).y
|
||||
newpos.y = get_surface_pos(newpos).y+1 -- /MFF (Mg|19/05//15)
|
||||
elseif pos.z <= -edge then
|
||||
newpos = {x = pos.x, y = 10, z = newedge}
|
||||
newpos.y = get_surface_pos(newpos).y
|
||||
newpos.y = get_surface_pos(newpos).y+1 -- /MFF (Mg|19/05/15)
|
||||
end
|
||||
|
||||
-- Teleport the player
|
||||
|
Reference in New Issue
Block a user