post_marker: comment debug logging

This commit is contained in:
Starbeamrainbowlabs 2023-08-19 13:49:13 +01:00
parent 186b1090a0
commit f590304995
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

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