forked from VoxeLibre/VoxeLibre
fix stupid crash
This commit is contained in:
parent
8c91d23eb8
commit
d00490c86f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue