Skip to content

Commit d971277

Browse files
committed
Code cleanup
1 parent f8f0f60 commit d971277

File tree

1 file changed

+4
-3
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/render

1 file changed

+4
-3
lines changed

common/src/main/kotlin/com/lambda/module/modules/render/FreeLook.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ import com.lambda.event.events.PlayerEvent
2222
import com.lambda.event.listener.SafeListener.Companion.listen
2323
import com.lambda.interaction.request.rotation.Rotation
2424
import com.lambda.module.Module
25+
import com.lambda.module.tag.ModuleTag
2526
import com.lambda.util.extension.rotation
26-
import net.minecraft.client.MinecraftClient
2727
import net.minecraft.client.option.Perspective
2828

29+
2930
object FreeLook : Module(
3031
name = "FreeLook",
3132
description = "Allows you to look around freely while moving",
32-
defaultTags = setOf(com.lambda.module.tag.ModuleTag.RENDER, com.lambda.module.tag.ModuleTag.MOVEMENT)
33+
defaultTags = setOf(ModuleTag.PLAYER)
3334
) {
3435
val enableYaw by setting("Enable Yaw", false, "Don't effect pitch if enabled")
3536
val enablePitch by setting("Enable Pitch", false, "Don't effect yaw if enabled")
@@ -51,7 +52,7 @@ object FreeLook : Module(
5152
}
5253

5354
init {
54-
previousPerspective = MinecraftClient.getInstance().options.perspective
55+
previousPerspective = Lambda.mc.options.perspective
5556

5657
onEnable {
5758
camera = player.rotation

0 commit comments

Comments
 (0)