fix islands shifting upwards
This commit is contained in:
parent
92ae6296d5
commit
97a40cd8eb
|
@ -1,2 +1,2 @@
|
||||||
name = nc_crystal
|
name = nc_crystal
|
||||||
depends = nc_api, nc_api_craft, nc_terrain, nc_lode, nc_guide
|
depends = nc_api_all, nc_terrain, nc_lode, nc_guide
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = nc_sandmaking
|
name = nc_sandmaking
|
||||||
depends = nc_terrain, nc_fire, nc_api, nc_api_craft
|
depends = nc_terrain, nc_fire, nc_api_all
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = nc_sky_inject
|
name = nc_sky_inject
|
||||||
depends = nc_tree, nc_stonework, nc_api, nc_api_craft, nc_terrain
|
depends = nc_tree, nc_stonework, nc_api_all, nc_terrain
|
||||||
|
|
|
@ -412,7 +412,7 @@ minetest.register_globalstep(function(dt)
|
||||||
gen_island_pos(ref:get_player_name())
|
gen_island_pos(ref:get_player_name())
|
||||||
end
|
end
|
||||||
if pos then
|
if pos then
|
||||||
pos.y=pos.y+64
|
pos={x=pos.x,y=pos.y+64,z=pos.z}
|
||||||
ref:set_pos(pos)
|
ref:set_pos(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -464,10 +464,10 @@ minetest.register_chatcommand("assign", {
|
||||||
privs = {server = true},
|
privs = {server = true},
|
||||||
func = function(name,param)
|
func = function(name,param)
|
||||||
local is = get_standing_island(name)
|
local is = get_standing_island(name)
|
||||||
if not minetest.get_player_by_name(param) then
|
--if not minetest.get_player_by_name(param) then
|
||||||
minetest.chat_send_player(name,S("No player @1",param))
|
-- minetest.chat_send_player(name,S("No player @1",param))
|
||||||
return
|
-- return
|
||||||
end
|
--end
|
||||||
if players[param] then
|
if players[param] then
|
||||||
local ois = players[param]
|
local ois = players[param]
|
||||||
table.insert(cells,{pos=ois.pos,valid = false})
|
table.insert(cells,{pos=ois.pos,valid = false})
|
||||||
|
@ -477,7 +477,7 @@ minetest.register_chatcommand("assign", {
|
||||||
minetest.chat_send_player(name,S"No island here")
|
minetest.chat_send_player(name,S"No island here")
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
players[name] = {pos = is.pos, valid = is.valid}
|
players[param] = {pos = is.pos, valid = is.valid}
|
||||||
is.t[is.k] = nil
|
is.t[is.k] = nil
|
||||||
end
|
end
|
||||||
minetest.chat_send_player(name,S"OK")
|
minetest.chat_send_player(name,S"OK")
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = nc_sky_isgen
|
name = nc_sky_isgen
|
||||||
depends = nc_api, nc_terrain, nc_tree, nc_lode, nc_crystal
|
depends = nc_api_all, nc_terrain, nc_tree, nc_lode, nc_crystal
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
name = nc_sponge_spores
|
name = nc_sponge_spores
|
||||||
depends = nc_api, nc_api_craft, nc_sponge, nc_tree
|
depends = nc_api_all, nc_sponge, nc_tree
|
||||||
|
|
Loading…
Reference in New Issue