mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 10:34:40 +00:00
Catch invalid link
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user