This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this commit implements local real time, fixes the time formula, adds logging, and more refactoring
- Loading branch information
1 parent
ab6df79
commit 59cfca2
Showing
16 changed files
with
231 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
Milestone: yesterday | ||
- fix bugs | ||
|
||
Milestone: 0.5.1 | ||
- local maxmind | ||
- account for real sun movement, not just time | ||
- readd metrics | ||
- fix realtime | ||
- cache cleaning | ||
- prevent packets | ||
|
||
Milestone: 0.6.0 | ||
- account for real sun movement, not just time | ||
|
||
Milestone: future | ||
- weather simulator (weather is clientside rn and doesnt have things such as lightning or other effects) | ||
- tests |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package pl.minecon724.realweather; | ||
|
||
import java.util.logging.Level; | ||
import java.util.logging.Logger; | ||
|
||
public class SubLogger { | ||
private static Logger logger; | ||
private String name; | ||
|
||
static void init(Logger loger) { | ||
logger = loger; | ||
} | ||
|
||
public SubLogger(String name) { | ||
this.name = name; | ||
} | ||
|
||
public void log(Level level, String format, Object... args) { | ||
Object[] combinedArgs = new Object[args.length + 1]; | ||
combinedArgs[0] = name; | ||
System.arraycopy(args, 0, combinedArgs, 1, args.length); | ||
|
||
logger.log(level, String.format("[%s] " + format, combinedArgs)); | ||
} | ||
|
||
public void info(String format, Object... args) { | ||
this.log(Level.INFO, format, args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/main/java/pl/minecon724/realweather/map/exceptions/GeoIPException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
package pl.minecon724.realweather.map.exceptions; | ||
|
||
public class GeoIPException extends Exception { | ||
|
||
public GeoIPException(String string) { | ||
super(string); | ||
public GeoIPException(String message) { | ||
super(message); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.