only set Portal destination once

This commit is contained in:
CreepyCre 2021-06-17 18:33:34 +02:00
parent 09b3f6f05c
commit 75aa722ec7

View file

@ -114,7 +114,9 @@ public class DimensionalPortalBlock extends Block implements RiftProvider<Entran
}
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);
}