take itemstack when value nil

master
Juraj Vajda 2018-11-17 14:13:21 -05:00
parent e9ff0e9464
commit 3889d9cee5
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ minetest.register_craftitem("x_marketplace:head", {
local stack_meta_owner = stack_meta.owner
if not stack_meta_value then
return
itemstack:take_item()
return itemstack
end
-- sell item