Skip to content

Commit

Permalink
fix: fix the default index of Multitool modes (#4202)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 authored Jun 8, 2024
1 parent 2fb89ad commit 4bcce20
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 4bcce20

Please sign in to comment.