From 127ab50950bf3044d80674d92f9c18d776fe38fe Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sat, 16 Jan 2021 23:40:30 +0100 Subject: [PATCH] Add check --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 9241f6a..b1c71a1 100644 --- a/init.lua +++ b/init.lua @@ -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, })