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
|
||||
|
||||
|
||||
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
|
||||
historic reasons.
|
||||
|
|
|
@ -325,12 +325,10 @@ local function translocate(pos, node, clicker, itemstack, pointed_thing)
|
|||
|
||||
local pos2
|
||||
if minetest.serialize(pair[2]) == minetest.serialize(pos) then
|
||||
pos2 = table.copy(pair[1])
|
||||
clicker:setpos(pair[1])
|
||||
else
|
||||
pos2 = table.copy(pair[2])
|
||||
clicker:setpos(pair[2])
|
||||
end
|
||||
pos2.y = pos2.y + 1
|
||||
clicker:setpos(pos2)
|
||||
end
|
||||
|
||||
local function trans_use(itemstack, user, pointed_thing)
|
||||
|
@ -434,7 +432,6 @@ minetest.register_node("fun_caves:translocator", {
|
|||
description = 'Translocator',
|
||||
tiles = {'fun_caves_translocator.png'},
|
||||
drawtype = 'mesh',
|
||||
--wield_scale = {x = 1.5, y = 1.5, z = 1.5},
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
paramtype = 'light',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue