diff --git a/src/main/java/de/teamlapen/vampirism/entity/player/vampire/actions/InfectAction.java b/src/main/java/de/teamlapen/vampirism/entity/player/vampire/actions/InfectAction.java index c22f4dfc5..60ae7d312 100644 --- a/src/main/java/de/teamlapen/vampirism/entity/player/vampire/actions/InfectAction.java +++ b/src/main/java/de/teamlapen/vampirism/entity/player/vampire/actions/InfectAction.java @@ -57,7 +57,10 @@ public boolean canBeUsedBy(@NotNull IVampirePlayer player) { if (player.getRepresentingPlayer().level().getDifficulty() == Difficulty.PEACEFUL) return false; if (player.isRemote()) { Entity target = VampirismMod.proxy.getMouseOverEntity(); - if (target != null) { + if (target instanceof LivingEntity living) { + if (UtilLib.canReallySee(living, player.getRepresentingPlayer(), false)) { + return false; + } return deriveBiteableEntry(target).map(b -> b.canBeInfected(player)).orElse(false); } return false;