Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
xspanger3770 committed Oct 23, 2023
1 parent b99af8f commit 1547162
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -843,11 +843,10 @@ private void updateHypocenter(Cluster cluster, Hypocenter bestHypocenter) {
if (cluster.getEarthquake() == null) {
Earthquake newEarthquake = new Earthquake(cluster);
if (!testing) {
getEarthquakes().add(newEarthquake);
if (GlobalQuakeServer.instance != null) {
GlobalQuakeServer.instance.getEventHandler().fireEvent(new QuakeCreateEvent(newEarthquake));
}

getEarthquakes().add(newEarthquake);
}
cluster.setEarthquake(newEarthquake);
} else {
Expand All @@ -866,7 +865,7 @@ private void updateHypocenter(Cluster cluster, Hypocenter bestHypocenter) {
Earthquake earthquake = cluster.getEarthquake();

if(!testing && earthquake != null){
earthquake.uppdateRegion();
earthquake.updateRegion();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public Earthquake(Cluster cluster) {
this.lastUpdate = System.currentTimeMillis();
}

public void uppdateRegion(){
public void updateRegion(){
regionUpdater.updateRegion();
}

Expand Down

0 comments on commit 1547162

Please sign in to comment.