Fixed duplication bug
This commit is contained in:
parent
7ead0a45a6
commit
3714132ed0
7
init.lua
7
init.lua
@ -247,6 +247,10 @@ minetest.register_node("inventory_plus:workbench", {
|
|||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if from_list == "dst" and to_list == "table" then
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
|
||||||
return count
|
return count
|
||||||
end,
|
end,
|
||||||
|
|
||||||
@ -266,9 +270,6 @@ minetest.register_node("inventory_plus:workbench", {
|
|||||||
|
|
||||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||||
|
|
||||||
minetest.node_metadata_inventory_move_allow_all(
|
|
||||||
pos, from_list, from_index, to_list, to_index, count, player)
|
|
||||||
|
|
||||||
if to_list == "table" or from_list == "table" then
|
if to_list == "table" or from_list == "table" then
|
||||||
|
|
||||||
local inv = minetest.get_meta(pos):get_inventory()
|
local inv = minetest.get_meta(pos):get_inventory()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user