mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-08 08:23:59 +01:00
Fix item duplication bug with broken tubes. (#92)
It was possible to drag items from broken sorting-/mese-tubes.
This commit is contained in:
parent
b6ae50be87
commit
ab0713d9a5
@ -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,
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user