aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-04-01 01:37:55 +0200
committerLinnea Gräf <nea@nea.moe>2025-04-01 01:37:55 +0200
commitbda040c6c2cc77c9c1a06a61b2f13548d28d76ec (patch)
tree3c48dc96cfd74a6a7d167e45eaccca0bec74fb12 /src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
parent4f4652bb0d50dfd37297a573ad73ef9cd1a8e92d (diff)
downloadFirmament-mc1.21.5.tar.gz
Firmament-mc1.21.5.tar.bz2
Firmament-mc1.21.5.zip
WIP: Port some 1.21.5 thingsmc1.21.5
Diffstat (limited to 'src/main/kotlin/features/events/carnival/MinesweeperHelper.kt')
-rw-r--r--src/main/kotlin/features/events/carnival/MinesweeperHelper.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt b/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
index 1824225..cfc05cc 100644
--- a/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
+++ b/src/main/kotlin/features/events/carnival/MinesweeperHelper.kt
@@ -222,7 +222,7 @@ object MinesweeperHelper {
fun onChat(event: ProcessChatEvent) {
if (CarnivalFeatures.TConfig.displayTutorials && event.unformattedString == startGameQuestion) {
MC.sendChat(Text.translatable("firmament.carnival.tutorial.minesweeper").styled {
- it.withClickEvent(ClickEvent(ClickEvent.Action.RUN_COMMAND, "/firm minesweepertutorial"))
+ it.withClickEvent(ClickEvent.RunCommand("/firm minesweepertutorial"))
})
}
if (!CarnivalFeatures.TConfig.enableBombSolver) {
@@ -259,7 +259,7 @@ object MinesweeperHelper {
val boardPosition = BoardPosition.fromBlockPos(event.blockPos)
log.log { "Breaking block at ${event.blockPos} ($boardPosition)" }
gs.lastClickedPosition = boardPosition
- gs.lastDowsingMode = DowsingMode.fromItem(event.player.inventory.mainHandStack)
+ gs.lastDowsingMode = DowsingMode.fromItem(event.player.mainHandStack)
}
@Subscribe