[xdecor] Update
parent
bbcd40de83
commit
3598c5f64d
|
@ -93,7 +93,7 @@ function enchanting.put(_, listname, _, stack)
|
|||
local item = stack:get_name():match("[^:]+$")
|
||||
if listname == "mese" and item == "mese_crystal" then
|
||||
return stack:get_count()
|
||||
elseif listname == "tool" and allowed(item) then
|
||||
elseif listname == "tool" and item and allowed(item) then
|
||||
return 1
|
||||
end
|
||||
return 0
|
||||
|
|
|
@ -171,8 +171,8 @@ function workbench.take(_, listname, _, stack, player)
|
|||
return stack:get_count()
|
||||
end
|
||||
|
||||
function workbench.move(_, _, _, to_list, _, count)
|
||||
if to_list == "storage" then return count end
|
||||
function workbench.move(_, from_list, _, to_list, _, count)
|
||||
if to_list == "storage" and from_list ~= "forms" then return count end
|
||||
return 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue