Add check

This commit is contained in:
Jean-Patrick Guerrero 2021-01-16 23:40:30 +01:00
parent e5c2ddfb4e
commit 127ab50950
1 changed files with 5 additions and 1 deletions

View File

@ -2326,7 +2326,11 @@ local trash = core.create_detached_inventory("i3_trash", {
end,
on_put = function(inv, listname, index, stack, player)
inv:set_list(listname, {})
set_fs(player)
local name = player:get_player_name()
if not creative_enabled(name) then
set_fs(player)
end
end,
})