Skip to content

Commit

Permalink
fix: fix default index
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Jun 8, 2024
1 parent 2fb89ad commit 20c217a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected ItemUseHandler getItemUseHandler() {
ItemMeta meta = item.getItemMeta();
e.cancel();

int index = PersistentDataAPI.getInt(meta, key);
int index = PersistentDataAPI.getInt(meta, key, 0);
SlimefunItem sfItem = modes.get(index).getItem();

if (!p.isSneaking()) {
Expand Down

0 comments on commit 20c217a

Please sign in to comment.