Skip to content

Commit fba3c3a

Browse files
committed
Fix PufferfishMixin mistakenly checking for invisiblity rather than vanish
1 parent 7a3fca7 commit fba3c3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mixins/java/org/spongepowered/common/mixin/core/world/entity/animal/PufferfishMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class PufferfishMixin {
4343
at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/player/Player;isCreative()Z"))
4444
private static boolean impl$considerVanishedPlayers(final Player player, final Operation<Boolean> operation) {
4545
if (player instanceof VanishableBridge vb) {
46-
if (vb.bridge$isInvisible() && vb.bridge$vanishState().untargetable()) {
46+
if (vb.bridge$vanishState().untargetable()) {
4747
return false;
4848
}
4949
}
@@ -58,7 +58,7 @@ public class PufferfishMixin {
5858
final LivingEntity entity, final ServerLevel level
5959
) {
6060
if (entity instanceof VanishableBridge vb) {
61-
if (vb.bridge$isInvisible() && vb.bridge$vanishState().untargetable()) {
61+
if (vb.bridge$vanishState().untargetable()) {
6262
// this is inverted because we want to return true to signify the "entity type is not scary"
6363
return true;
6464
}

0 commit comments

Comments
 (0)