From ab0713d9a58b852dd44831376382f435120f39d8 Mon Sep 17 00:00:00 2001 From: debagos Date: Sat, 11 Nov 2023 23:06:43 +0100 Subject: [PATCH] Fix item duplication bug with broken tubes. (#92) It was possible to drag items from broken sorting-/mese-tubes. --- routing_tubes.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/routing_tubes.lua b/routing_tubes.lua index d29eb85..f6fec5e 100644 --- a/routing_tubes.lua +++ b/routing_tubes.lua @@ -97,7 +97,16 @@ pipeworks.register_tube("pipeworks:broken_tube", { pipeworks.logger(log_msg.." but original node "..was_node.name.." is not registered anymore.") minetest.chat_send_player(playername, S("This tube cannot be repaired.")) end - end + end, + allow_metadata_inventory_put = function() + return 0 + end, + allow_metadata_inventory_move = function() + return 0 + end, + allow_metadata_inventory_take = function() + return 0 + end, } })