We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9066f90 commit 57b83fcCopy full SHA for 57b83fc
1 file changed
src/main/java/de/srendi/advancedperipherals/common/items/SmartGlassesItem.java
@@ -303,6 +303,9 @@ public static ItemStack getEquipped(final LivingEntity entity) {
303
}
304
305
public static ItemStack getEquippedCurios(final LivingEntity entity) {
306
+ if (!APAddon.CURIOS.isLoaded()) {
307
+ return ItemStack.EMPTY;
308
+ }
309
final ICuriosItemHandler curiosInv = CuriosApi.getCuriosInventory(entity).orElse(null);
310
if (curiosInv == null) {
311
return ItemStack.EMPTY;
0 commit comments