mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Works for clients and server.
Due to the information being sent and received, it only currently works on client side boats. #story[1111]
This commit is contained in:
@@ -282,9 +282,6 @@ public class Yacht {
|
||||
this.velocityProperty.set(velocity);
|
||||
}
|
||||
|
||||
public void updateSailsInProperty(Boolean clientSails) {
|
||||
this.clientSailsIn = clientSails;
|
||||
}
|
||||
|
||||
public void setMarkRoundingTime(Long markRoundingTime) {
|
||||
this.markRoundTime = markRoundingTime;
|
||||
@@ -407,7 +404,7 @@ public class Yacht {
|
||||
this.velocity = velocity;
|
||||
updateVelocityProperty(velocity);
|
||||
for (YachtLocationListener yll : locationListeners) {
|
||||
yll.notifyLocation(this, lat, lon, heading, velocity, this.clientSailsIn);
|
||||
yll.notifyLocation(this, lat, lon, heading, velocity, clientSailsIn);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user