pos_marker: debug logging; set health = 0

This commit is contained in:
Starbeamrainbowlabs 2023-08-01 00:14:43 +01:00
parent abfd76930a
commit 6231132055
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -18,6 +18,7 @@ local WEAPositionMarker = {
collisionbox = { -0.55, -0.55, -0.55, 0.55, 0.55, 0.55 }, collisionbox = { -0.55, -0.55, -0.55, 0.55, 0.55, 0.55 },
physical = false, physical = false,
collide_with_objects = false, collide_with_objects = false,
health = 0,
textures = { textures = {
"worldeditadditions_core_bg.png", "worldeditadditions_core_bg.png",
@ -31,6 +32,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)
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()
@ -155,5 +157,5 @@ anchor = EventEmitter.new({
delete = delete, delete = delete,
set_number = set_number set_number = set_number
}) })
anchor.debug = true
return anchor return anchor