mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-06-01 06:01:56 +00:00
Fixing stuff not working
This commit is contained in:
@@ -82,23 +82,22 @@ public class PacketHandler {
|
||||
}
|
||||
});
|
||||
player.getLagInfo().getLastClientTransaction().reset();
|
||||
} else {
|
||||
Optional.ofNullable(player.instantTransaction.remove(packet.b()))
|
||||
.ifPresent(t -> t.two.accept(t.one));
|
||||
}
|
||||
Optional.ofNullable(player.instantTransaction.remove(packet.b()))
|
||||
.ifPresent(t -> t.two.accept(t.one));
|
||||
}
|
||||
break;
|
||||
}
|
||||
case FLYING: {
|
||||
WPacketPlayInFlying packet = (WPacketPlayInFlying) packetObject;
|
||||
|
||||
player.getEntityLocationHandler().onFlying();
|
||||
|
||||
if(player.getMovement().isExcuseNextFlying()) {
|
||||
player.getMovement().setExcuseNextFlying(false);
|
||||
return;
|
||||
}
|
||||
|
||||
player.getEntityLocationHandler().onFlying();
|
||||
|
||||
if(player.getPlayerVersion().isOrAbove(ProtocolVersion.V1_17)
|
||||
&& packet.isMoved() && packet.isLooked()
|
||||
&& MovementUtils.isSameLocation(new KLocation(packet.getX(), packet.getY(), packet.getZ()),
|
||||
@@ -148,6 +147,12 @@ public class PacketHandler {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case RESPAWN: {
|
||||
if(player.getPlayerVersion().isBelow(ProtocolVersion.V1_14)) {
|
||||
player.runKeepaliveAction(k -> player.getBukkitPlayer().setSprinting(false), 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SERVER_POSITION: {
|
||||
player.getMovement().addPosition((WPacketPlayOutPosition) packetObject);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user