forked from nalc/homedecor_modpack
Remove spammy debug messages
This commit is contained in:
parent
51e88d5d2d
commit
8030b60178
@ -16,7 +16,6 @@ function isSolid(pos,adj)
|
|||||||
local node = minetest.get_node(vector.add(pos,adj))
|
local node = minetest.get_node(vector.add(pos,adj))
|
||||||
if node then
|
if node then
|
||||||
local idef = minetest.registered_nodes[minetest.get_node(vector.add(pos,adj)).name]
|
local idef = minetest.registered_nodes[minetest.get_node(vector.add(pos,adj)).name]
|
||||||
print('doop')
|
|
||||||
if idef then
|
if idef then
|
||||||
return idef.walkable
|
return idef.walkable
|
||||||
end
|
end
|
||||||
@ -129,8 +128,6 @@ end
|
|||||||
-- isClosed flag, is 0 or 1 0 = open, 1 = closed
|
-- isClosed flag, is 0 or 1 0 = open, 1 = closed
|
||||||
function getClosed(pos)
|
function getClosed(pos)
|
||||||
local isClosed = minetest.get_meta(pos):get_string('closed')
|
local isClosed = minetest.get_meta(pos):get_string('closed')
|
||||||
print('closed!'..isClosed)
|
|
||||||
assert(pos)
|
|
||||||
if isClosed=='' then
|
if isClosed=='' then
|
||||||
if calculateClosed(pos) then
|
if calculateClosed(pos) then
|
||||||
return true
|
return true
|
||||||
@ -275,7 +272,6 @@ for i in ipairs(sides) do
|
|||||||
-- check when that action is invoked if to continue
|
-- check when that action is invoked if to continue
|
||||||
|
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
print('erasing closed status')
|
|
||||||
minetest.get_meta(pos):set_string('closed',nil)
|
minetest.get_meta(pos):set_string('closed',nil)
|
||||||
end,
|
end,
|
||||||
mesecons = {
|
mesecons = {
|
||||||
@ -283,7 +279,6 @@ for i in ipairs(sides) do
|
|||||||
action_on = function(pos,node)
|
action_on = function(pos,node)
|
||||||
local isClosed = getClosed(pos)
|
local isClosed = getClosed(pos)
|
||||||
if isClosed then
|
if isClosed then
|
||||||
print('closing')
|
|
||||||
homedecor_flip_door(pos,node,nil,doorname,side,isClosed)
|
homedecor_flip_door(pos,node,nil,doorname,side,isClosed)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user