3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2025-01-11 23:51:11 +01:00

Dust particle color verified working

Dieser Commit ist enthalten in:
Camotoy 2024-11-04 21:26:17 -05:00
Ursprung f5d9db4ff6
Commit 6e8a955ee0
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -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);