mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 19:35:00 -04:00
Squashed commit of the following:
commit a1e08b1918270f057e707a0ffbf1d3407930879d Author: MrGeoTech <themrgeotech@gmail.com> Date: Thu Jan 26 18:23:05 2023 -0600 Allowing for no rendering with BlockDustParticles commit 07b752c4dee839a457e5fa6131c7a3f8a8c57f72 Merge: 1c6eb6e4d 08f9ef56d Author: MrGeoTech <themrgeotech@gmail.com> Date: Thu Jan 26 17:44:07 2023 -0600 Merge branch 'master' of https://gitlab.bixilon.de/bixilon/minosoft commit 1c6eb6e4dc43250fb0d088e852e36acc463e4239 Merge: 1fc103c8f ceee18b5d Author: MrGeoTech <themrgeotech@gmail.com> Date: Wed Jan 18 22:08:02 2023 -0600 Merge branch 'master' of https://gitlab.bixilon.de/bixilon/minosoft
This commit is contained in:
parent
08f9ef56d1
commit
3d31289a67
@ -40,7 +40,7 @@ class BlockDustParticle(connection: PlayConnection, position: Vec3d, velocity: V
|
|||||||
gravityStrength = 1.0f
|
gravityStrength = 1.0f
|
||||||
color = 0.6f.asGray()
|
color = 0.6f.asGray()
|
||||||
|
|
||||||
connection.rendering!!.context.tintManager.getParticleTint(data.blockState, blockPosition)?.asRGBColor()?.let {
|
connection.rendering?.context?.tintManager?.getParticleTint(data.blockState, blockPosition)?.asRGBColor()?.let {
|
||||||
color = RGBColor(color.floatRed * it.floatRed, color.floatGreen * it.floatGreen, color.floatBlue * it.floatBlue)
|
color = RGBColor(color.floatRed * it.floatRed, color.floatGreen * it.floatGreen, color.floatBlue * it.floatBlue)
|
||||||
}
|
}
|
||||||
scale /= 2.0f
|
scale /= 2.0f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user