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:
Bixilon 2023-01-27 08:16:59 +01:00
parent 08f9ef56d1
commit 3d31289a67
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -40,7 +40,7 @@ class BlockDustParticle(connection: PlayConnection, position: Vec3d, velocity: V
gravityStrength = 1.0f
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)
}
scale /= 2.0f