Skip to content

Commit

Permalink
Fix EEW test color
Browse files Browse the repository at this point in the history
  • Loading branch information
TenkyuChimata committed Jul 12, 2023
1 parent 64bab7c commit 58ca39d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>jp.wolfx</groupId>
<artifactId>MCEEW</artifactId>
<version>2.2.1-b7</version>
<version>2.2.1-b8</version>
<packaging>jar</packaging>

<name>MCEEW</name>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/jp/wolfx/mceew/MCEEW.java
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ private static void eewTest(int flag) {
String shindo = "5弱";
String type = "最終報";
String origin_time = getDate("yyyy/MM/dd HH:mm:ss", time_format, "Asia/Tokyo", origin_time_str);
eewAction(flags, report_time, origin_time, num, lat, lon, region, mag, depth, shindo, type);
eewAction(flags, report_time, origin_time, num, lat, lon, region, mag, depth, getShindoColor(shindo), type);
} else if (flag == 2) {
String origin_time_str = "2023-01-01 21:08:30";
String report_time = "2023-01-01 21:08:39";
Expand All @@ -423,7 +423,7 @@ private static void eewTest(int flag) {
String depth = "10km";
String intensity = "5";
String origin_time = getDate("yyyy-MM-dd HH:mm:ss", time_format, "Asia/Shanghai", origin_time_str);
scEewAction(report_time, origin_time, num, lat, lon, region, mag, depth, intensity);
scEewAction(report_time, origin_time, num, lat, lon, region, mag, depth, getIntensityColor(intensity));
} else if (flag == 3) {
String origin_time_str = "2023-06-23 03:45:34";
String report_time = "2023-06-23 03:45:54";
Expand All @@ -448,7 +448,7 @@ private static void eewTest(int flag) {
String shindo = "3";
String type = "";
String origin_time = getDate("yyyy/MM/dd HH:mm:ss", time_format, "Asia/Tokyo", origin_time_str);
eewAction(flags, report_time, origin_time, num, lat, lon, region, mag, depth, shindo, type);
eewAction(flags, report_time, origin_time, num, lat, lon, region, mag, depth, getShindoColor(shindo), type);
}
Bukkit.broadcastMessage("§eWarning: This is a Earthquake Early Warning issued test.");
}
Expand Down

0 comments on commit 58ca39d

Please sign in to comment.