Catch invalid link

This commit is contained in:
Kogepan229 committed 2025-05-18 00:11:14 +09:00
1 parent 7a3e6fb8f5
commit 4869e0d049
1 file changed
+8
@@ -588,7 +588,11 @@ public class TileLevelMaintainer extends AENetworkTile
enable = tag.getBoolean("enable");
state = LevelState.values()[tag.getInteger("state")];
if (tag.hasKey("link")) {
try {
this.link = AEApi.instance().storage().loadCraftingLink(tag.getCompoundTag("link"), this.tile);
} catch (Exception ignored) {
this.link = null;
}
}
job = null;
}
@@ -600,7 +604,11 @@ public class TileLevelMaintainer extends AENetworkTile
enable = tag.getBoolean("enable");
state = LevelState.values()[tag.getInteger("state")];
if (tag.hasKey("link")) {
try {
this.link = AEApi.instance().storage().loadCraftingLink(tag.getCompoundTag("link"), this.tile);
} catch (Exception ignored) {
this.link = null;
}
}
}