From 2467e8bb0b30499d9c8fb90f749eac9b622f2a1d Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 28 Aug 2022 15:34:37 +0200 Subject: [PATCH] Fix sound play --- src/detached_inv.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detached_inv.lua b/src/detached_inv.lua index ede1fec..108e76b 100644 --- a/src/detached_inv.lua +++ b/src/detached_inv.lua @@ -10,6 +10,9 @@ local trash = create_inventory("i3_trash", { inv:set_list(listname, {}) local name = player:get_player_name() + local data = i3.data[name] + data.armor_allow = nil + play_sound(name, "i3_trash", 1.0) if not core.is_creative_enabled(name) then