1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2024-12-25 00:30:18 +01:00

remove debug prints

This commit is contained in:
Vanessa Dannenberg 2019-09-18 20:28:42 -04:00
parent f0bc18154e
commit 831055095c

View File

@ -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())