fix stupid crash

This commit is contained in:
AFCMS 2021-03-19 14:27:57 +01:00
parent 8c91d23eb8
commit d00490c86f
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ local function give_item(user, itemstack)
if itemstack and user:is_player() then
local inv = user:get_inventory()
if false then --minetest.is_creative_enabled(user:get_player_name()) then
if inv:contains_item("main", itemstack)
if inv:contains_item("main", itemstack) then
return false
else
if inv:room_for_item("main", itemstack) then