diff --git a/world/datapacks/lem.base/data/lem.base/functions/disconnect/remove/game.mcfunction b/world/datapacks/lem.base/data/lem.base/functions/disconnect/remove/game.mcfunction index 5dba6ecf0..8754506b3 100644 --- a/world/datapacks/lem.base/data/lem.base/functions/disconnect/remove/game.mcfunction +++ b/world/datapacks/lem.base/data/lem.base/functions/disconnect/remove/game.mcfunction @@ -9,3 +9,6 @@ function lem.base:ui/playerbar/load ##Check for Spectator Mobs to remove function lem.base:game/spectator/hide/offline/check + +##Delete dropped smallinv items +execute if score #Store lem.smallinv matches 1 run kill @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{SmallInv:1}}}}] diff --git a/world/datapacks/lem.base/data/lem.base/functions/game/player/respawn/run.mcfunction b/world/datapacks/lem.base/data/lem.base/functions/game/player/respawn/run.mcfunction index d6e41e9f9..c72f3733e 100644 --- a/world/datapacks/lem.base/data/lem.base/functions/game/player/respawn/run.mcfunction +++ b/world/datapacks/lem.base/data/lem.base/functions/game/player/respawn/run.mcfunction @@ -25,7 +25,7 @@ tag @s add notitle function lem.base:game/player/respawn/delayrun/check ##Delete dropped smallinv items -execute if score #Store lem.smallinv matches 1 run kill @e[type=item,nbt={Item:{tag:{SmallInv:1}}}] +execute if score #Store lem.smallinv matches 1 run kill @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{SmallInv:1}}}}] ##Run functions for addons function #lem.base:game/player/respawn/run