Remove the y+1 from translocate.

This commit is contained in:
Duane 2016-07-04 00:14:54 -05:00
parent 970dd3fab2
commit 943977949b
2 changed files with 7 additions and 5 deletions

View file

@ -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',