Skip to content

Commit f647211

Browse files
committed
up
1 parent fe05ece commit f647211

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ show_testing_output = false
1515

1616
# Mod Information
1717
# HIGHLY RECOMMEND complying with SemVer for mod_version: https://semver.org/
18-
mod_version = 1.2.5
18+
mod_version = 1.2.6
1919
root_package = com.circulation
2020
mod_id = only_one_item
2121
mod_name = OnlyOneItem

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.circulation.only_one_item.util;
22

3+
import com.circulation.only_one_item.OnlyOneItem;
34
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
45
import lombok.Getter;
56
import lombok.ToString;
@@ -55,6 +56,7 @@ public static SimpleItem getInstance(final ItemStack stack) {
5556

5657
public static SimpleItem getNoNBTInstance(final ItemStack stack) {
5758
if (stack.isEmpty()) return empty;
59+
if (stack.getItem().getRegistryName() == null) OnlyOneItem.LOGGER.error("{} RegistryName does not exist",stack.getItem().getClass().getName());
5860
return getInstance(stack.getItem().getRegistryName(), stack.getItemDamage());
5961
}
6062

0 commit comments

Comments
 (0)