mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-12-22 14:34:59 +01:00
Dust particle color verified working
This commit is contained in:
parent
f5d9db4ff6
commit
6e8a955ee0
1 changed files with 1 additions and 5 deletions
|
@ -132,11 +132,7 @@ public class JavaLevelParticlesTranslator extends PacketTranslator<ClientboundLe
|
||||||
}
|
}
|
||||||
case DUST, DUST_COLOR_TRANSITION -> { //TODO
|
case DUST, DUST_COLOR_TRANSITION -> { //TODO
|
||||||
DustParticleData data = (DustParticleData) particle.getData();
|
DustParticleData data = (DustParticleData) particle.getData();
|
||||||
// int r = (int) (data.getRed() * 255);
|
int rgbData = data.getColor();
|
||||||
// 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
|
|
||||||
return (position) -> {
|
return (position) -> {
|
||||||
LevelEventPacket packet = new LevelEventPacket();
|
LevelEventPacket packet = new LevelEventPacket();
|
||||||
packet.setType(ParticleType.FALLING_DUST);
|
packet.setType(ParticleType.FALLING_DUST);
|
||||||
|
|
Loading…
Reference in a new issue