We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f3e4a24 + 3fea3f8 commit e5bd1a3Copy full SHA for e5bd1a3
1 file changed
src/main/java/wayoftime/bloodmagic/compat/CuriosCompat.java
@@ -40,7 +40,14 @@ public NonNullList<ItemStack> getCuriosInventory(Player player)
40
41
public int recalculateCuriosSlots(Player player)
42
{
43
- ICurioStacksHandler livingArmourSockets = CuriosApi.getCuriosInventory(player).resolve().get().getCurios().get("living_armour_socket");
+ Optional<ICuriosItemHandler> curioInv = CuriosApi.getCuriosInventory(player).resolve();
44
+ if (curioInv.isEmpty()) {
45
+ return 0;
46
+ }
47
+ ICurioStacksHandler livingArmourSockets = curioInv.get().getCurios().get("living_armour_socket");
48
+ if (livingArmourSockets == null) {
49
50
51
if (LivingUtil.hasFullSet(player))
52
53
LivingStats stats = LivingStats.fromPlayer(player);
0 commit comments