Skip to content

Commit 57b83fc

Browse files
committed
fix crash when curios not present
1 parent 9066f90 commit 57b83fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/de/srendi/advancedperipherals/common/items/SmartGlassesItem.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ public static ItemStack getEquipped(final LivingEntity entity) {
303303
}
304304

305305
public static ItemStack getEquippedCurios(final LivingEntity entity) {
306+
if (!APAddon.CURIOS.isLoaded()) {
307+
return ItemStack.EMPTY;
308+
}
306309
final ICuriosItemHandler curiosInv = CuriosApi.getCuriosInventory(entity).orElse(null);
307310
if (curiosInv == null) {
308311
return ItemStack.EMPTY;

0 commit comments

Comments
 (0)