Fix PlayerEvent.BreakSpeed's pos being nullable. (#7747) Closes #7615.

This commit is contained in:
Curle authored and GitHub committed 2021-05-17 13:46:11 -07:00
1 parent f332642409
commit 167f14f4a1
1 file changed
+1 -1
@@ -128,7 +128,7 @@ public class PlayerEvent extends LivingEvent
this.state = state;
this.originalSpeed = original;
this.setNewSpeed(original);
this.pos = pos;
this.pos = pos != null ? pos : new BlockPos(0, -1, 0);
}
public BlockState getState() { return state; }