[Fix] BetterEnd crashes when entering eternal portal (#242)
This commit is contained in:
parent
e949115f04
commit
7f49b2414d
1 changed files with 4 additions and 2 deletions
|
@ -55,9 +55,11 @@ public final class TravelerState {
|
||||||
if (!this.level().isClientSide && !blockPos.equals(this.portalEntrancePos)) {
|
if (!this.level().isClientSide && !blockPos.equals(this.portalEntrancePos)) {
|
||||||
this.portalEntrancePos = blockPos.immutable();
|
this.portalEntrancePos = blockPos.immutable();
|
||||||
}
|
}
|
||||||
|
if (this.level().isClientSide) {
|
||||||
if (entity instanceof LocalPlayer) {
|
if (entity instanceof LocalPlayer) {
|
||||||
entity.isInsidePortal = true;
|
entity.isInsidePortal = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.isInsidePortal = true;
|
this.isInsidePortal = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue