[xdecor] Update

master
LeMagnesium 2016-05-31 00:23:46 +02:00
parent bbcd40de83
commit 3598c5f64d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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