From d1c7c9d9ef9b0c07f3de7337486c8a5c16e5c49e Mon Sep 17 00:00:00 2001 From: Atomic Junky <67459553+atomic-junky@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:15:57 +0200 Subject: [PATCH] fix: Custom item removed instead of the right one when placing an item on a cutting board --- tasty_supplies/beet.json | 2 +- .../cutting_board/place_item/remove_player_item.mcfunction | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasty_supplies/beet.json b/tasty_supplies/beet.json index b330c88..ba2b3d0 100644 --- a/tasty_supplies/beet.json +++ b/tasty_supplies/beet.json @@ -1,5 +1,5 @@ { - "version": "0.11", + "version": "0.11.2", "author": "Atomic Junky", "output": "build", "data_pack": { diff --git a/tasty_supplies/src/data/tasty_supplies/function/cutting_board/place_item/remove_player_item.mcfunction b/tasty_supplies/src/data/tasty_supplies/function/cutting_board/place_item/remove_player_item.mcfunction index 67873b8..c53fd7a 100644 --- a/tasty_supplies/src/data/tasty_supplies/function/cutting_board/place_item/remove_player_item.mcfunction +++ b/tasty_supplies/src/data/tasty_supplies/function/cutting_board/place_item/remove_player_item.mcfunction @@ -3,6 +3,6 @@ ## $ => stored item components execute if data storage minecraft:temp cutting_board.item.model_data run function tasty_supplies:cutting_board/place_item/remove_custom_item with storage minecraft:temp cutting_board.item -$execute unless data storage minecraft:temp cutting_board.item.model_data run clear @s $(id) 1 +$execute unless data storage minecraft:temp cutting_board.item.model_data run clear @s $(id)[!minecraft:custom_model_data] 1 data remove storage minecraft:temp cutting_board.item \ No newline at end of file