From 6231132055250adbbb157ac554f9a1a429979976 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 1 Aug 2023 00:14:43 +0100 Subject: [PATCH] pos_marker: debug logging; set health = 0 --- worldeditadditions_core/core/entities/pos_marker.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldeditadditions_core/core/entities/pos_marker.lua b/worldeditadditions_core/core/entities/pos_marker.lua index aa8ed0c..17d2b0d 100644 --- a/worldeditadditions_core/core/entities/pos_marker.lua +++ b/worldeditadditions_core/core/entities/pos_marker.lua @@ -18,6 +18,7 @@ local WEAPositionMarker = { collisionbox = { -0.55, -0.55, -0.55, 0.55, 0.55, 0.55 }, physical = false, collide_with_objects = false, + health = 0, textures = { "worldeditadditions_core_bg.png", @@ -31,6 +32,7 @@ local WEAPositionMarker = { on_activate = function(self, 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 -- print("DEBUG:marker_wall/remove staticdata", staticdata, "last_reset", last_reset) self.object:remove() @@ -155,5 +157,5 @@ anchor = EventEmitter.new({ delete = delete, set_number = set_number }) - +anchor.debug = true return anchor