entityPlayerMP.theItemInWorldManager.setWorld(toDimension);
this.updateTimeAndWeatherForPlayer(entityPlayerMP, toDimension);
this.syncPlayerInventory(entityPlayerMP);
for (PotionEffect potionEffect : (Iterable<PotionEffect>) entityPlayerMP.getActivePotionEffects()) {
entityPlayerMP.playerNetServerHandler.sendPacketToPlayer(new Packet41EntityEffect(entityPlayerMP.entityId, potionEffect));
}
GameRegistry.onPlayerChangedDimension(entityPlayerMP);
}
fromDimension.getPlayerManager().removePlayer(entityPlayerMP);