Br sweep feedback

This commit is contained in:
Jesse Boyd 2017-09-13 13:58:47 +10:00
parent 0693972db8
commit 18c031919b
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -45,12 +45,13 @@ public class SweepBrush implements Brush, ResettableTool {
boolean newPos = this.position == null || !position.equals(this.position);
this.position = position;
FawePlayer player = editSession.getPlayer();
if (newPos) {
BBC.BRUSH_SPLINE_PRIMARY_2.send(player);
positions.add(position);
return;
}
FawePlayer player = editSession.getPlayer();
if (positions.size() < 2) {
BBC.BRUSH_SPLINE_SECONDARY_ERROR.send(player);
return;
@ -116,6 +117,7 @@ public class SweepBrush implements Brush, ResettableTool {
break;
}
}
BBC.BRUSH_SPLINE_SECONDARY.send(player);
reset();
}