1
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:
ybw0014 2024-06-08 13:29:30 -04:00 committed by GitHub
parent 2fb89add03
commit 4bcce20249
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()) {