Skip to content

Commit d71c7af

Browse files
committed
Crash fix tries
1 parent c59a730 commit d71c7af

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/main/kotlin/HighwayTools.kt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,16 +2022,22 @@ internal object HighwayTools : PluginModule(
20222022
sendChatMessage("$chatName Liquid out of reach (${player.distanceTo(neighbourPos)})")
20232023
}
20242024
}
2025-
return true
2025+
return false
20262026
}
20272027

20282028
foundLiquid = true
20292029

20302030
pendingTasks[neighbourPos]?.let {
20312031
updateLiquidTask(it)
20322032
} ?: run {
2033-
// pendingTasks[neighbourPos] = BlockTask(neighbourPos, TaskState.LIQUID, Blocks.AIR)
2034-
// pendingTasks[neighbourPos]?.updateLiquid(this)
2033+
// ToDo: Add new liquids without crash
2034+
// val event = this
2035+
// runBlocking {
2036+
// stateUpdateMutex.withLock {
2037+
// pendingTasks[neighbourPos] = BlockTask(neighbourPos, TaskState.LIQUID, Blocks.AIR)
2038+
// pendingTasks[neighbourPos]?.updateLiquid(event)
2039+
// }
2040+
// }
20352041
}
20362042
}
20372043

0 commit comments

Comments
 (0)