Skip to content

Commit fe05ece

Browse files
committed
fix #7
1 parent a63838e commit fe05ece

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/com/circulation/only_one_item/util/SimpleItem.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public static SimpleItem getInstance(final String rl, final int meta) {
3939
}
4040

4141
public static SimpleItem getInstance(final ResourceLocation rl, final int meta) {
42+
if (rl == null) return empty;
4243
return noNbtCache.computeIfAbsent(rl, CachedMetaItems::new)
4344
.computeIfAbsent(meta);
4445
}

0 commit comments

Comments
 (0)