Minor optimizations

This commit is contained in:
Jean-Patrick Guerrero
2021-11-15 23:50:48 +01:00
parent c5dec1bc77
commit 8f49914c9f
8 changed files with 90 additions and 58 deletions

View File

@ -1,3 +1,4 @@
local set_fs = i3.set_fs
local fmt, play_sound, create_inventory = i3.get("fmt", "play_sound", "create_inventory")
local trash = create_inventory("i3_trash", {
@ -12,7 +13,7 @@ local trash = create_inventory("i3_trash", {
play_sound(name, "i3_trash", 1.0)
if not core.is_creative_enabled(name) then
i3.set_fs(player)
set_fs(player)
end
end,
})