Remove the y+1 from translocate.
This commit is contained in:
parent
970dd3fab2
commit
943977949b
2 changed files with 7 additions and 5 deletions
5
LICENSE
5
LICENSE
|
@ -11,6 +11,11 @@ mod, distributed under the WTFPL license.
|
||||||
https://forum.minetest.net/viewtopic.php?f=9&t=9522
|
https://forum.minetest.net/viewtopic.php?f=9&t=9522
|
||||||
|
|
||||||
|
|
||||||
|
Translocator node design, including models and textures came from Auke Kok's warps mod, distributed under LGPL 2.1 and cc-by-sa 3.
|
||||||
|
|
||||||
|
https://github.com/minetest-mods/warps/blob/master/LICENSE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The rest of this mod is distributed under the LGPL 2.1 license for
|
The rest of this mod is distributed under the LGPL 2.1 license for
|
||||||
historic reasons.
|
historic reasons.
|
||||||
|
|
|
@ -325,12 +325,10 @@ local function translocate(pos, node, clicker, itemstack, pointed_thing)
|
||||||
|
|
||||||
local pos2
|
local pos2
|
||||||
if minetest.serialize(pair[2]) == minetest.serialize(pos) then
|
if minetest.serialize(pair[2]) == minetest.serialize(pos) then
|
||||||
pos2 = table.copy(pair[1])
|
clicker:setpos(pair[1])
|
||||||
else
|
else
|
||||||
pos2 = table.copy(pair[2])
|
clicker:setpos(pair[2])
|
||||||
end
|
end
|
||||||
pos2.y = pos2.y + 1
|
|
||||||
clicker:setpos(pos2)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function trans_use(itemstack, user, pointed_thing)
|
local function trans_use(itemstack, user, pointed_thing)
|
||||||
|
@ -434,7 +432,6 @@ minetest.register_node("fun_caves:translocator", {
|
||||||
description = 'Translocator',
|
description = 'Translocator',
|
||||||
tiles = {'fun_caves_translocator.png'},
|
tiles = {'fun_caves_translocator.png'},
|
||||||
drawtype = 'mesh',
|
drawtype = 'mesh',
|
||||||
--wield_scale = {x = 1.5, y = 1.5, z = 1.5},
|
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
paramtype = 'light',
|
paramtype = 'light',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue