Skip to content

Commit

Permalink
Fix calculation order issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lt-name committed Aug 20, 2024
1 parent 190bf4d commit bd8d57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/entity/Entity.java
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ protected void recalculateEffectColor() {
ambient = false;
}
if (packedEffectsCount < 8) {
effectsData = effectsData << 7 | (effect.getId() & 0x3f << 1) | (effect.isAmbient() ? 1 : 0);
effectsData = effectsData << 7 | ((effect.getId() & 0x3f) << 1) | (effect.isAmbient() ? 1 : 0);
packedEffectsCount++;
}
}
Expand Down

0 comments on commit bd8d57d

Please sign in to comment.