only set Portal destination once
This commit is contained in:
parent
09b3f6f05c
commit
75aa722ec7
1 changed files with 3 additions and 1 deletions
|
@ -114,7 +114,9 @@ public class DimensionalPortalBlock extends Block implements RiftProvider<Entran
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void portalTick(World world, BlockPos pos, BlockState state, EntranceRiftBlockEntity e) {
|
private static void portalTick(World world, BlockPos pos, BlockState state, EntranceRiftBlockEntity e) {
|
||||||
if (world.isClient) return;
|
if (world.isClient || e.getDestination() != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
e.setPortalDestination((ServerWorld) world);
|
e.setPortalDestination((ServerWorld) world);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue