Skip to content

Commit 166905a

Browse files
committed
fix
1 parent b7edfc6 commit 166905a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/aekeylegacy/api/stacks/AEFluidKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static AEFluidKey fromTag(NBTTagCompound tag) {
108108
var extraTag = tag.hasKey("tag") ? tag.getCompoundTag("tag") : null;
109109
return of(fluid, extraTag);
110110
} catch (Exception e) {
111-
AELog.debug("Tried to load an invalid fluid key from NBT: %s", tag, e);
111+
AELog.error("Tried to load an invalid fluid key from NBT: %s", tag, e);
112112
return null;
113113
}
114114
}

src/main/java/aekeylegacy/api/stacks/AEItemKey.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ public static AEItemKey fromPacket(PacketBuffer data) {
365365
var caps = data.readCompoundTag();
366366
return new AEItemKey(item, metadata, InternedTag.of(tag, true), InternedTag.of(caps, true));
367367
} catch (Exception e) {
368-
throw new RuntimeException(e);
368+
AELog.error("Tried to load an invalid item key from packet: %s", data, e);
369+
return null;
369370
}
370371
}
371372

0 commit comments

Comments
 (0)