teleportEntityTo(entity, closestCoords, teleporter);
}
for(Coord4D coords : Mekanism.teleporters.get(code))
{
Mekanism.packetHandler.sendToReceivers(new PortalFXMessage(coords), new Range4D(coords));
}
setEnergy(getEnergy() - calculateEnergyCost(entity, closestCoords));
worldObj.playSoundAtEntity(entity, "mob.endermen.portal", 1.0F, 1.0F);