From 655461964803600ee01dffdd615cbc67fd4cfc0c Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sat, 14 Sep 2019 20:39:12 +0200 Subject: [PATCH] Stack overflow bugfix for the detector from fluxionary (issue #39) --- releasenotes.md | 13 +++++++++++++ tubelib_addons1/detector.lua | 1 + 2 files changed, 14 insertions(+) diff --git a/releasenotes.md b/releasenotes.md index 2978382..e6406b9 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -2,6 +2,19 @@ +## V2.03.07 (2019-09-14) + +### Additions + +### Removals + +### Changes + +### Fixes +- Stack overflow bugfix for the detector from fluxionary (issue #39) + + + ## V2.03.06 (2019-08-08) ### Additions diff --git a/tubelib_addons1/detector.lua b/tubelib_addons1/detector.lua index f7c5ad9..67225c8 100644 --- a/tubelib_addons1/detector.lua +++ b/tubelib_addons1/detector.lua @@ -131,6 +131,7 @@ minetest.register_craft({ tubelib.register_node("tubelib_addons1:detector", {"tubelib_addons1:detector_active"}, { on_push_item = function(pos, side, item) + if side ~= "L" then return false end local player_name = minetest.get_meta(pos):get_string("player_name") if tubelib.push_items(pos, "R", item, player_name) then switch_on(pos)