Work Table : prevent moving stuff in slots to each other
This commit is contained in:
parent
428ecec29b
commit
ce22e630ee
@ -116,6 +116,10 @@ function worktable.put(pos, listname, index, stack, player)
|
|||||||
return count
|
return count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function worktable.move(pos, from_list, from_index, to_list, to_index, count, player)
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
|
||||||
xdecor.register("worktable", {
|
xdecor.register("worktable", {
|
||||||
description = "Work Table",
|
description = "Work Table",
|
||||||
groups = {cracky=2},
|
groups = {cracky=2},
|
||||||
@ -128,7 +132,8 @@ xdecor.register("worktable", {
|
|||||||
on_construct = worktable.construct,
|
on_construct = worktable.construct,
|
||||||
on_receive_fields = worktable.fields,
|
on_receive_fields = worktable.fields,
|
||||||
can_dig = worktable.dig,
|
can_dig = worktable.dig,
|
||||||
allow_metadata_inventory_put = worktable.put
|
allow_metadata_inventory_put = worktable.put,
|
||||||
|
allow_metadata_inventory_move = worktable.move
|
||||||
})
|
})
|
||||||
|
|
||||||
for _, m in pairs(material) do
|
for _, m in pairs(material) do
|
||||||
|
Loading…
Reference in New Issue
Block a user