[1.14] Fix recording player's hand not swinging
This commit is contained in:
@@ -126,8 +126,8 @@ public class RecordingEventHandler extends EventRegistrations {
|
|||||||
if (mc.player == null) return;
|
if (mc.player == null) return;
|
||||||
//#else
|
//#else
|
||||||
//$$ @SubscribeEvent
|
//$$ @SubscribeEvent
|
||||||
//$$ public void onPlayerTick(TickEvent.PlayerTickEvent e) {
|
//$$ public void onPlayerTick(TickEvent.ClientTickEvent e) {
|
||||||
//$$ if(e.player != mc.player) return;
|
//$$ if(e.phase != TickEvent.Phase.START || mc.player == null) return;
|
||||||
//#endif
|
//#endif
|
||||||
ClientPlayerEntity player = mc.player;
|
ClientPlayerEntity player = mc.player;
|
||||||
try {
|
try {
|
||||||
@@ -212,7 +212,7 @@ public class RecordingEventHandler extends EventRegistrations {
|
|||||||
|
|
||||||
//Animation Packets
|
//Animation Packets
|
||||||
//Swing Animation
|
//Swing Animation
|
||||||
if (player.isHandSwinging && player.handSwingTicks == -1) {
|
if (player.isHandSwinging && player.handSwingTicks == 0) {
|
||||||
packetListener.save(new EntityAnimationS2CPacket(
|
packetListener.save(new EntityAnimationS2CPacket(
|
||||||
player,
|
player,
|
||||||
//#if MC>=10904
|
//#if MC>=10904
|
||||||
|
|||||||
Reference in New Issue
Block a user