chore: updated overlooked mentions of old name

Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
moonleay 2024-05-04 02:39:54 +02:00
parent b5d65623aa
commit 7cf65cffd2
Signed by: moonleay
GPG key ID: 82667543CCD715FB
2 changed files with 4 additions and 4 deletions

View file

@ -116,7 +116,7 @@ object ClientEditor {
* */ * */
fun setMode(mode: Mode) { fun setMode(mode: Mode) {
if (!isAllowed()) { if (!isAllowed()) {
ChatUtil.showToastToSelf("Gimble is disabled", "You cannot change modes", MinecraftClient.getInstance()) ChatUtil.showToastToSelf("Gimbal is disabled", "You cannot change modes", MinecraftClient.getInstance())
return return
} }
if (!MinecraftClient.getInstance().player!!.isCreative) if (!MinecraftClient.getInstance().player!!.isCreative)
@ -131,7 +131,7 @@ object ClientEditor {
* */ * */
fun toggleModifier(mod: ModeModifier) { fun toggleModifier(mod: ModeModifier) {
if (!isAllowed()) { if (!isAllowed()) {
ChatUtil.showToastToSelf("Gimble is disabled", "You cannot change modifiers", MinecraftClient.getInstance()) ChatUtil.showToastToSelf("Gimbal is disabled", "You cannot change modifiers", MinecraftClient.getInstance())
return return
} }
if (!MinecraftClient.getInstance().player!!.isCreative) if (!MinecraftClient.getInstance().player!!.isCreative)
@ -226,7 +226,7 @@ object ClientEditor {
displayText.append("]") displayText.append("]")
} else if (!isAllowed() || !MinecraftClient.getInstance().player?.isCreative!!) { } else if (!isAllowed() || !MinecraftClient.getInstance().player?.isCreative!!) {
displayText.clear() displayText.clear()
displayText.append("[GIMBLE DISABLED]") displayText.append("[GIMBAL DISABLED]")
} }
return Text.of(displayText.toString()) return Text.of(displayText.toString())
} }

View file

@ -23,6 +23,6 @@ import net.moonleay.gimbal.build.BuildConstants
object PacketIDs { object PacketIDs {
val UPDATE_EDITOR_STATE_ID = Identifier(BuildConstants.modId, "update_editor_state") val UPDATE_EDITOR_STATE_ID = Identifier(BuildConstants.modId, "update_editor_state")
val GIMBAL_POLICY_PACKET_ID = Identifier(BuildConstants.modId, "gimble_policy") val GIMBAL_POLICY_PACKET_ID = Identifier(BuildConstants.modId, "gimbal_policy")
} }