Skip to content

Commit c26c935

Browse files
committed
Fix position in some plugin-called player_interact events
This was noticed with Axiom calling RIGHT_CLICK_BLOCK events without a position, but may happen with other plugins too.
1 parent 0f1bce9 commit c26c935

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/laytonsmith/abstraction/bukkit/events/BukkitPlayerEvents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ public MCEquipmentSlot getHand() {
604604
public Vector3D getClickedPosition() {
605605
Vector v = pie.getClickedPosition();
606606
if(v == null) {
607-
return null;
607+
return Vector3D.ZERO;
608608
}
609609
return new Vector3D(v.getX(), v.getY(), v.getZ());
610610
}

0 commit comments

Comments
 (0)