diff --git a/dist/src/main/kotlin/kr/toxicity/hud/compass/CircleCompass.kt b/dist/src/main/kotlin/kr/toxicity/hud/compass/CircleCompass.kt index 3b52b81..2d0fa0e 100644 --- a/dist/src/main/kotlin/kr/toxicity/hud/compass/CircleCompass.kt +++ b/dist/src/main/kotlin/kr/toxicity/hud/compass/CircleCompass.kt @@ -259,7 +259,8 @@ class CircleCompass( selectedPointer.map[CompassData(ceil((length - abs(minus * length)) / 2).toInt())]?.let { pointComponent -> val value = (minus * comp.width / 2 - comp.width / 2).roundToInt() - comp += (value - pointComponent.width / 2).toSpaceComponent() + pointComponent + (-value).toSpaceComponent() + val halfPoint = pointComponent.width.toDouble() / 2 + comp += (value - floor(halfPoint).toInt()).toSpaceComponent() + pointComponent + (-value - ceil(halfPoint).toInt()).toSpaceComponent() } } return (-comp.width / 2).toSpaceComponent() + comp diff --git a/dist/src/main/kotlin/kr/toxicity/hud/manager/CommandManager.kt b/dist/src/main/kotlin/kr/toxicity/hud/manager/CommandManager.kt index 3c302ad..947ed34 100644 --- a/dist/src/main/kotlin/kr/toxicity/hud/manager/CommandManager.kt +++ b/dist/src/main/kotlin/kr/toxicity/hud/manager/CommandManager.kt @@ -210,8 +210,8 @@ object CommandManager : BetterHudManager { "player" to Component.text(player.name()), "hud" to Component.text(hud.name) ) - if (success) add_success.send(me, map) - else add_failure.send(me, map) + if (success) remove_success.send(me, map) + else remove_failure.send(me, map) } } } @@ -265,8 +265,8 @@ object CommandManager : BetterHudManager { "player" to Component.text(player.name()), "compass" to Component.text(compass.name) ) - if (success) add_success.send(me, map) - else add_failure.send(me, map) + if (success) remove_success.send(me, map) + else remove_failure.send(me, map) } } } @@ -320,8 +320,8 @@ object CommandManager : BetterHudManager { "player" to Component.text(player.name()), "popup" to Component.text(popup.name) ) - if (success) add_success.send(me, map) - else add_failure.send(me, map) + if (success) remove_success.send(me, map) + else remove_failure.send(me, map) } } }