}
this.transferEntityToWorld(entityPlayerMP, fromDimensionId, fromDimension, toDimension, teleporter);
entityPlayerMP.setWorld(toDimension);
toDimension.theChunkProviderServer.loadChunk((int) entityPlayerMP.posX >> 4, (int) entityPlayerMP.posZ >> 4);
if (!toDimension.playerEntities.contains(entityPlayerMP)) {
toDimension.spawnEntityInWorld(entityPlayerMP);
}
entityPlayerMP.playerNetServerHandler.setPlayerLocation(entityPlayerMP.posX, entityPlayerMP.posY, entityPlayerMP.posZ, entityPlayerMP.rotationYaw, entityPlayerMP.rotationPitch);
entityPlayerMP.theItemInWorldManager.setWorld(toDimension);
this.updateTimeAndWeatherForPlayer(entityPlayerMP, toDimension);
this.syncPlayerInventory(entityPlayerMP);