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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user