Skip to content

Commit

Permalink
Dust particle color verified working
Browse files Browse the repository at this point in the history
  • Loading branch information
Camotoy committed Nov 5, 2024
1 parent f5d9db4 commit 6e8a955
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,7 @@ public void translate(GeyserSession session, ClientboundLevelParticlesPacket pac
}
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);
Expand Down

0 comments on commit 6e8a955

Please sign in to comment.