diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-07-28 21:54:12 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-28 13:54:12 +0200 |
| commit | ccdae8cf68308b89754d47bd6dfa1dba80a10d0b (patch) | |
| tree | 3bfa852301ed2008ff5ed068bfefe33276b8210f /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures | |
| parent | ca875b3cd4b0806b39cad5a9921e29bbffa0d840 (diff) | |
| download | notenoughupdates-ccdae8cf68308b89754d47bd6dfa1dba80a10d0b.tar.gz notenoughupdates-ccdae8cf68308b89754d47bd6dfa1dba80a10d0b.tar.bz2 notenoughupdates-ccdae8cf68308b89754d47bd6dfa1dba80a10d0b.zip | |
Add /neuresetslotlocking command (#1274)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java index 83e4b703..c3313375 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/SlotLocking.java @@ -807,4 +807,13 @@ public class SlotLocking { if (eventSlotNumber == 36 && pairingSlotNumber == 8) return true; return false; } + + public void resetSlotLocking() { + String profileName = SBInfo.getInstance().currentProfile; + if (profileName == null) profileName = "generic"; + SlotLockProfile slotLockProfile = config.profileData.get(profileName); + if (slotLockProfile != null) { + slotLockProfile.slotLockData[0] = new SlotLockData(); + } + } } |
