mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
fix tint on water cauldrons
This commit is contained in:
parent
5a35a221df
commit
264023b9de
@ -31,7 +31,6 @@ class InternalChatMessage(
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
val TYPE = ChatMessageType(minosoft("internal"), TypeProperties("%s", listOf(ChatParameter.CONTENT), mapOf()), narration = null, position = ChatTextPositions.CHAT)
|
||||
}
|
||||
}
|
||||
|
@ -14,10 +14,16 @@
|
||||
package de.bixilon.minosoft.gui.rendering.tint
|
||||
|
||||
import de.bixilon.minosoft.data.registries.biomes.Biome
|
||||
import de.bixilon.minosoft.data.registries.blocks.BlockState
|
||||
import de.bixilon.minosoft.data.registries.fluid.Fluid
|
||||
|
||||
object WaterTintProvider : TintProvider {
|
||||
|
||||
// cauldron
|
||||
override fun getBlockColor(blockState: BlockState, biome: Biome?, x: Int, y: Int, z: Int, tintIndex: Int): Int {
|
||||
return biome?.waterColor?.rgb ?: 0xFFFFFF // ToDo: Fallback color
|
||||
}
|
||||
|
||||
override fun getFluidTint(fluid: Fluid, biome: Biome?, height: Float, x: Int, y: Int, z: Int): Int {
|
||||
return biome?.waterColor?.rgb ?: 0xFFFFFF // ToDo: Fallback color
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user