Dust particle color verified working

This commit is contained in:
Camotoy 2024-11-04 21:26:17 -05:00
parent f5d9db4ff6
commit 6e8a955ee0
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -132,11 +132,7 @@ public class JavaLevelParticlesTranslator extends PacketTranslator<ClientboundLe
}
case DUST, DUST_COLOR_TRANSITION -> { //TODO
DustParticleData data = (DustParticleData) particle.getData();
// int r = (int) (data.getRed() * 255);
// int g = (int) (data.getGreen() * 255);
// int b = (int) (data.getBlue() * 255);
// int rgbData = ((0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff);
int rgbData = data.getColor(); // TEST
int rgbData = data.getColor();
return (position) -> {
LevelEventPacket packet = new LevelEventPacket();
packet.setType(ParticleType.FALLING_DUST);