[Fix] BetterEnd crashes when entering eternal portal (#242)

This commit is contained in:
Frank 2023-06-21 21:21:29 +02:00
parent e949115f04
commit 7f49b2414d

View file

@ -55,9 +55,11 @@ public final class TravelerState {
if (!this.level().isClientSide && !blockPos.equals(this.portalEntrancePos)) {
this.portalEntrancePos = blockPos.immutable();
}
if (this.level().isClientSide) {
if (entity instanceof LocalPlayer) {
entity.isInsidePortal = true;
}
}
this.isInsidePortal = true;
}