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(":");
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public class ChatSyncClient {
|
||||||
while ((serverMessage = in.readLine()) != null) {
|
while ((serverMessage = in.readLine()) != null) {
|
||||||
PlayerSync.LOGGER.info("Received message from chat server: " + serverMessage);
|
PlayerSync.LOGGER.info("Received message from chat server: " + serverMessage);
|
||||||
Component textComponents = Component.nullToEmpty(serverMessage);
|
Component textComponents = Component.nullToEmpty(serverMessage);
|
||||||
if(playerList!=null){
|
if(playerList != null){
|
||||||
playerList.broadcastSystemMessage(textComponents,false);
|
playerList.broadcastSystemMessage(textComponents,false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user