Skip to content

Commit

Permalink
Don't start portal timer, before after the player have started to cha…
Browse files Browse the repository at this point in the history
…nge dimension
  • Loading branch information
GirafiStudios committed Jun 25, 2019
1 parent a604169 commit 8ab4829
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ public void onEntityCollision(World world, BlockPos pos, IBlockState state, Enti

public static void changeDimension(World world, EntityPlayerMP player, int dimension, ITeleporter teleporter) {
if (!world.isRemote) {
player.timeUntilPortal = 300;

player.changeDimension(dimension, teleporter);
player.timeUntilPortal = 300;
if (player.dimension == AtumConfig.DIMENSION_ID) {
BlockPos playerPos = new BlockPos(player);
if (world.isAirBlock(playerPos) && world.getBlockState(playerPos).isSideSolid(world, playerPos, EnumFacing.UP)) {
Expand Down

0 comments on commit 8ab4829

Please sign in to comment.