Skip to content

Commit 79d2c83

Browse files
committed
Resolve merge conflicts
1 parent 96c408c commit 79d2c83

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

common/src/main/kotlin/com/lambda/module/modules/player/ClickFriend.kt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,21 @@
1818
package com.lambda.module.modules.player
1919

2020
import com.lambda.event.events.MouseEvent
21-
import com.lambda.event.listener.SafeListener.Companion.listener
21+
import com.lambda.event.listener.SafeListener.Companion.listen
2222
import com.lambda.friend.FriendManager
2323
import com.lambda.friend.FriendManager.befriend
2424
import com.lambda.friend.FriendManager.isFriend
2525
import com.lambda.friend.FriendManager.unfriend
2626
import com.lambda.module.Module
27-
import com.lambda.module.modules.client.ClickGui
2827
import com.lambda.module.tag.ModuleTag
2928
import com.lambda.util.Communication.info
3029
import com.lambda.util.Mouse
31-
import com.lambda.util.text.buildText
32-
import com.lambda.util.text.color
33-
import com.lambda.util.text.literal
34-
import com.lambda.util.text.text
3530
import com.lambda.util.world.raycast.RayCastUtils.entityResult
3631
import net.minecraft.client.network.OtherClientPlayerEntity
3732
import org.lwjgl.glfw.GLFW.GLFW_MOD_ALT
3833
import org.lwjgl.glfw.GLFW.GLFW_MOD_CONTROL
3934
import org.lwjgl.glfw.GLFW.GLFW_MOD_SHIFT
4035
import org.lwjgl.glfw.GLFW.GLFW_MOD_SUPER
41-
import java.awt.Color
4236

4337
object ClickFriend : Module(
4438
name = "ClickFriend",
@@ -51,14 +45,14 @@ object ClickFriend : Module(
5145
private val modUnfriend by setting("Combo Key", MouseMod.Shift, description = "The key to press to activate the unfriend combo") { comboUnfriend }
5246

5347
init {
54-
listener<MouseEvent.Click> {
48+
listen<MouseEvent.Click> {
5549
if (it.button != friendButton ||
5650
it.action != friendAction ||
5751
mc.currentScreen != null
58-
) return@listener
52+
) return@listen
5953

6054
val target = mc.crosshairTarget?.entityResult?.entity as? OtherClientPlayerEntity
61-
?: return@listener
55+
?: return@listen
6256

6357
if (modUnfriend.flagsPresent(it.modifiers) || !comboUnfriend) {
6458
when {

0 commit comments

Comments
 (0)