Skip to content

Commit c3d5b63

Browse files
committed
Allow rotating to entities
1 parent cf7691b commit c3d5b63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/src/main/kotlin/com/lambda/event/events/RotationEvent.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import com.lambda.interaction.visibilty.VisibilityChecker.findRotation
1111
import com.lambda.threading.runSafe
1212
import com.lambda.util.world.raycast.RayCastUtils.blockResult
1313
import com.lambda.util.world.raycast.RayCastUtils.entityResult
14-
import net.minecraft.entity.LivingEntity
14+
import net.minecraft.entity.Entity
1515
import net.minecraft.util.math.BlockPos
1616
import net.minecraft.util.math.Direction
1717

@@ -37,7 +37,7 @@ abstract class RotationEvent : Event {
3737
fun lookAtEntity(
3838
rotationConfig: IRotationConfig,
3939
interactionConfig: InteractionConfig,
40-
entity: LivingEntity
40+
entity: Entity
4141
) {
4242
runSafe {
4343
findRotation(rotationConfig, interactionConfig, listOf(entity.boundingBox)) {
@@ -68,4 +68,4 @@ abstract class RotationEvent : Event {
6868
}
6969

7070
class Post(val context: RotationContext) : RotationEvent()
71-
}
71+
}

0 commit comments

Comments
 (0)