mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 01:13:00 +00:00
post_marker: comment debug logging
This commit is contained in:
parent
186b1090a0
commit
f590304995
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ local WEAPositionMarker = {
|
||||||
|
|
||||||
on_activate = function(self, staticdata)
|
on_activate = function(self, staticdata)
|
||||||
local data = minetest.parse_json(staticdata)
|
local data = minetest.parse_json(staticdata)
|
||||||
print("DEBUG:pos_marker ON_ACTIVATE data", data)
|
-- print("DEBUG:pos_marker ON_ACTIVATE data", data)
|
||||||
if type(data) ~= "table" or data.id ~= last_reset then
|
if type(data) ~= "table" or data.id ~= last_reset then
|
||||||
-- print("DEBUG:marker_wall/remove staticdata", staticdata, "last_reset", last_reset)
|
-- print("DEBUG:marker_wall/remove staticdata", staticdata, "last_reset", last_reset)
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
|
@ -55,7 +55,7 @@ local WEAPositionMarker = {
|
||||||
anchor.set_number(self.object, self.display_number)
|
anchor.set_number(self.object, self.display_number)
|
||||||
end,
|
end,
|
||||||
on_punch = function(self, _)
|
on_punch = function(self, _)
|
||||||
print("DEBUG:pos_marker on_punch")
|
-- print("DEBUG:pos_marker on_punch")
|
||||||
anchor.delete(self)
|
anchor.delete(self)
|
||||||
end,
|
end,
|
||||||
on_blast = function(self, damage)
|
on_blast = function(self, damage)
|
||||||
|
@ -159,5 +159,5 @@ anchor = EventEmitter.new({
|
||||||
delete = delete,
|
delete = delete,
|
||||||
set_number = set_number
|
set_number = set_number
|
||||||
})
|
})
|
||||||
anchor.debug = true
|
-- anchor.debug = true
|
||||||
return anchor
|
return anchor
|
||||||
|
|
Loading…
Reference in a new issue