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:
Ursprung
f5d9db4ff6
Commit
6e8a955ee0
@ -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);
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren