Merge pull request #116 from mlus-asuka/1.20.1-dev
clear curios before restore?
This commit is contained in:
commit
7754186d12
|
|
@ -56,6 +56,7 @@ public class ModsSupport {
|
||||||
|
|
||||||
// Restore each saved item.
|
// Restore each saved item.
|
||||||
handlerOpt.ifPresent(handler -> {
|
handlerOpt.ifPresent(handler -> {
|
||||||
|
handler.getCurios().clear();
|
||||||
for (Map.Entry<String, String> entry : storedMap.entrySet()) {
|
for (Map.Entry<String, String> entry : storedMap.entrySet()) {
|
||||||
String compositeKey = entry.getKey(); // Expected format: "slotType:index"
|
String compositeKey = entry.getKey(); // Expected format: "slotType:index"
|
||||||
String[] parts = compositeKey.split(":");
|
String[] parts = compositeKey.split(":");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user