manager.syncPlayerInventory(player);
Iterator<PotionEffect> iterator = player.getActivePotionEffects().iterator();
while (iterator.hasNext()) {
PotionEffect potioneffect = iterator.next();
player.playerNetServerHandler.sendPacket(new S1DPacketEntityEffect(player.getEntityId(), potioneffect));
}
FMLCommonHandler.instance().firePlayerChangedDimensionEvent(player, oldDim, dimension);
}