Skip to content

Commit 6a41f80

Browse files
committed
isNull instead of notNull
1 parent be182ca commit 6a41f80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/lambda/mixin/entity/ClientPlayerEntityMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ private boolean modifyHasRotated(boolean original) {
102102
return !RotationManager.getActiveRotation().equalFloat(RotationManager.getServerRotation()) || original;
103103
}
104104

105-
@Inject(method = "sendMovementPackets", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)V"), locals = LocalCapture.CAPTURE_FAILEXCEPTION)
105+
@Inject(method = "sendMovementPackets", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)V", shift = At.Shift.BEFORE), locals = LocalCapture.CAPTURE_FAILEXCEPTION)
106106
private void injectSendPacket(CallbackInfo ci, double d, double e, double f, double g, double h, boolean bl, boolean bl2) {
107-
if (RotationManager.getRequests().stream().allMatch(Objects::nonNull)) {
107+
if (RotationManager.getRequests().stream().allMatch(Objects::isNull)) {
108108
moveEvent.setRotation(new Rotation(g + lastYawClient, h + lastPitchClient));
109109
}
110110
}

0 commit comments

Comments
 (0)