1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-19 14:59:27 +00:00

Fix: Critical / Enchanted critical hit particles

This commit is contained in:
onebeastchris
2025-11-08 23:01:42 +01:00
parent 73e67fc7a9
commit 0488023829

View File

@@ -85,8 +85,12 @@ public class JavaAnimateTranslator extends PacketTranslator<ClientboundAnimatePa
session.sendUpstreamPacket(offHandPacket); session.sendUpstreamPacket(offHandPacket);
return; return;
} }
case CRITICAL_HIT -> animatePacket.setAction(AnimatePacket.Action.CRITICAL_HIT); case CRITICAL_HIT -> {
animatePacket.setData(55);
animatePacket.setAction(AnimatePacket.Action.CRITICAL_HIT);
}
case ENCHANTMENT_CRITICAL_HIT -> { case ENCHANTMENT_CRITICAL_HIT -> {
animatePacket.setData(15);
animatePacket.setAction(AnimatePacket.Action.MAGIC_CRITICAL_HIT); // Unsure if this does anything animatePacket.setAction(AnimatePacket.Action.MAGIC_CRITICAL_HIT); // Unsure if this does anything
// Spawn custom particle // Spawn custom particle