mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 11:15:51 +00:00
fix: fix the default index of Multitool modes (#4202)
This commit is contained in:
parent
2fb89add03
commit
4bcce20249
@ -80,7 +80,7 @@ public class MultiTool extends SlimefunItem implements Rechargeable {
|
||||
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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user