From 1547162adc4bc7499e8a956c6d5b310f4985f19f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=A0panger?= Date: Mon, 23 Oct 2023 18:06:15 +0000 Subject: [PATCH] minor updates --- .../java/gqserver/core/earthquake/EarthquakeAnalysis.java | 5 ++--- .../main/java/gqserver/core/earthquake/data/Earthquake.java | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/GlobalQuakeServerUI/src/main/java/gqserver/core/earthquake/EarthquakeAnalysis.java b/GlobalQuakeServerUI/src/main/java/gqserver/core/earthquake/EarthquakeAnalysis.java index 7f9b59d..6b0cff2 100644 --- a/GlobalQuakeServerUI/src/main/java/gqserver/core/earthquake/EarthquakeAnalysis.java +++ b/GlobalQuakeServerUI/src/main/java/gqserver/core/earthquake/EarthquakeAnalysis.java @@ -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 { @@ -866,7 +865,7 @@ private void updateHypocenter(Cluster cluster, Hypocenter bestHypocenter) { Earthquake earthquake = cluster.getEarthquake(); if(!testing && earthquake != null){ - earthquake.uppdateRegion(); + earthquake.updateRegion(); } } diff --git a/GlobalQuakeServerUI/src/main/java/gqserver/core/earthquake/data/Earthquake.java b/GlobalQuakeServerUI/src/main/java/gqserver/core/earthquake/data/Earthquake.java index 59bff8c..21d9329 100644 --- a/GlobalQuakeServerUI/src/main/java/gqserver/core/earthquake/data/Earthquake.java +++ b/GlobalQuakeServerUI/src/main/java/gqserver/core/earthquake/data/Earthquake.java @@ -29,7 +29,7 @@ public Earthquake(Cluster cluster) { this.lastUpdate = System.currentTimeMillis(); } - public void uppdateRegion(){ + public void updateRegion(){ regionUpdater.updateRegion(); }