diff --git a/Common/src/main/java/dev/cammiescorner/icarus/client/IcarusClient.java b/Common/src/main/java/dev/cammiescorner/icarus/client/IcarusClient.java index d1d3dc2..0bf08c0 100644 --- a/Common/src/main/java/dev/cammiescorner/icarus/client/IcarusClient.java +++ b/Common/src/main/java/dev/cammiescorner/icarus/client/IcarusClient.java @@ -1,5 +1,6 @@ package dev.cammiescorner.icarus.client; +import com.google.common.base.MoreObjects; import dev.cammiescorner.icarus.util.IcarusHelper; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.entity.player.Player; @@ -30,7 +31,7 @@ public static void onPlayerTick(Player player) { @ApiStatus.Internal public static ItemStack getWingsForRendering(LivingEntity entity) { - return IcarusHelper.getEquippedWings(entity); + return MoreObjects.firstNonNull(IcarusHelper.getEquippedWings(entity), ItemStack.EMPTY); } @ApiStatus.Internal