mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-11 16:33:21 +01:00
post_marker: comment debug logging
This commit is contained in:
parent
186b1090a0
commit
f590304995
@ -33,7 +33,7 @@ local WEAPositionMarker = {
|
||||
|
||||
on_activate = function(self, 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
|
||||
-- print("DEBUG:marker_wall/remove staticdata", staticdata, "last_reset", last_reset)
|
||||
self.object:remove()
|
||||
@ -55,7 +55,7 @@ local WEAPositionMarker = {
|
||||
anchor.set_number(self.object, self.display_number)
|
||||
end,
|
||||
on_punch = function(self, _)
|
||||
print("DEBUG:pos_marker on_punch")
|
||||
-- print("DEBUG:pos_marker on_punch")
|
||||
anchor.delete(self)
|
||||
end,
|
||||
on_blast = function(self, damage)
|
||||
@ -159,5 +159,5 @@ anchor = EventEmitter.new({
|
||||
delete = delete,
|
||||
set_number = set_number
|
||||
})
|
||||
anchor.debug = true
|
||||
-- anchor.debug = true
|
||||
return anchor
|
||||
|
Loading…
Reference in New Issue
Block a user