forked from mtcontrib/signs_lib
remove debug prints
This commit is contained in:
parent
f0bc18154e
commit
831055095c
3
api.lua
3
api.lua
@ -739,8 +739,6 @@ function signs_lib.after_place_node(pos, placer, itemstack, pointed_thing, locke
|
||||
local pdef = minetest.registered_items[pnode.name]
|
||||
|
||||
if (def.allow_onpole ~= false) and signs_lib.check_for_pole(pos, pointed_thing) then
|
||||
print("allow onpole")
|
||||
print(def.paramtype2)
|
||||
local newparam2
|
||||
local lookdir = minetest.yaw_to_dir(placer:get_look_horizontal())
|
||||
if def.paramtype2 == "wallmounted" then
|
||||
@ -749,7 +747,6 @@ function signs_lib.after_place_node(pos, placer, itemstack, pointed_thing, locke
|
||||
newparam2 = minetest.dir_to_facedir(lookdir)
|
||||
end
|
||||
local node = minetest.get_node(pos)
|
||||
print(node.param2, newparam2)
|
||||
minetest.swap_node(pos, {name = itemstack:get_name().."_onpole", param2 = newparam2})
|
||||
elseif def.allow_hanging and signs_lib.check_for_ceiling(pointed_thing) then
|
||||
local newparam2 = minetest.dir_to_facedir(placer:get_look_dir())
|
||||
|
Loading…
Reference in New Issue
Block a user