Skip to content

Commit

Permalink
fix: Custom item removed instead of the right one when placing an ite…
Browse files Browse the repository at this point in the history
…m on a cutting board
  • Loading branch information
atomic-junky committed Jun 16, 2024
1 parent 0961d6b commit d1c7c9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasty_supplies/beet.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.11",
"version": "0.11.2",
"author": "Atomic Junky",
"output": "build",
"data_pack": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d1c7c9d

Please sign in to comment.