Fix item duplication bug with broken tubes. (#92)

It was possible to drag items from broken sorting-/mese-tubes.
This commit is contained in:
debagos 2023-11-11 23:06:43 +01:00 committed by GitHub
parent b6ae50be87
commit ab0713d9a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -97,7 +97,16 @@ pipeworks.register_tube("pipeworks:broken_tube", {
pipeworks.logger(log_msg.." but original node "..was_node.name.." is not registered anymore.") 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.")) minetest.chat_send_player(playername, S("This tube cannot be repaired."))
end 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,
} }
}) })