mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-19 15:09:15 +00:00
@@ -235,7 +235,7 @@ public class IdAllocator {
|
||||
sortedJsonObject.addProperty(entry.getValue(), entry.getKey());
|
||||
}
|
||||
|
||||
if (sortedJsonObject.isEmpty()) {
|
||||
if (sortedJsonObject.asMap().isEmpty()) {
|
||||
if (Files.exists(this.cacheFilePath)) {
|
||||
Files.delete(this.cacheFilePath);
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ public class VisualBlockStateAllocator {
|
||||
for (Map.Entry<BlockStateWrapper, String> entry : sortedById.entrySet()) {
|
||||
sortedJsonObject.addProperty(entry.getValue(), entry.getKey().getAsString());
|
||||
}
|
||||
if (sortedJsonObject.isEmpty()) {
|
||||
if (sortedJsonObject.asMap().isEmpty()) {
|
||||
if (Files.exists(this.cacheFilePath)) {
|
||||
Files.delete(this.cacheFilePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user