else if (infinite || ticks < maxTicks) {
for (dEntity entity : entities) {
if (entity.isSpawned() && rotatingEntities.contains(entity.getUUID())) {
Rotation.rotate(entity.getBukkitEntity(),
Rotation.normalizeYaw(entity.getLocation().getYaw() + yaw.asFloat()),
entity.getLocation().getPitch() + pitch.asFloat());
}
else {
rotatingEntities.remove(entity.getUUID());
unusedEntities.add(entity);
}