if (thePlayer.isEntityAlive() && i < 1)
{
thePlayer.setLocationAndAngles(d, thePlayer.posY, d1, thePlayer.rotationYaw, thePlayer.rotationPitch);
theWorld.updateEntityWithOptionalForce(thePlayer, false);
(new Teleporter()).placeInPortal(theWorld, thePlayer);
}
}