Skip to content

Commit a1b4893

Browse files
committed
fix null pointer when checking if bread was a setback
1 parent 4d28f85 commit a1b4893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/ac/grim/grimac/utils/data/VectorData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public boolean isSetbackKb(GrimPlayer player) {
6060
if (!isKnockback) {
6161
return false;
6262
}
63-
64-
return (firstBreadKb ? player.firstBreadKB : player.likelyKB).isSetback;
63+
VelocityData bread = (firstBreadKb ? player.firstBreadKB : player.likelyKB);
64+
return bread != null && bread.isSetback;
6565
}
6666

6767
@Override

0 commit comments

Comments
 (0)