diff options
| author | Moulberry <james.jenour@protonmail.com> | 2021-09-02 17:10:13 +0800 |
|---|---|---|
| committer | Moulberry <james.jenour@protonmail.com> | 2021-09-02 17:10:13 +0800 |
| commit | 7cab76126da90f1884c111a1ee589b90a6ef828e (patch) | |
| tree | 22fc3496e5fbfea4f01bcda045c91472bb6e5240 /src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java | |
| parent | 81eea6bf1f653fa194735d892b40614389975dd3 (diff) | |
| download | notenoughupdates-7cab76126da90f1884c111a1ee589b90a6ef828e.tar.gz notenoughupdates-7cab76126da90f1884c111a1ee589b90a6ef828e.tar.bz2 notenoughupdates-7cab76126da90f1884c111a1ee589b90a6ef828e.zip | |
misc & bin warning & sort warning
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java index e41ef78d..9699f4ad 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java @@ -28,6 +28,9 @@ import java.util.regex.Pattern; public class SBInfo { private static final SBInfo INSTANCE = new SBInfo(); + public static SBInfo getInstance() { + return INSTANCE; + } private static final Pattern timePattern = Pattern.compile(".+(am|pm)"); @@ -43,11 +46,7 @@ public class SBInfo { public Date currentTimeDate = null; - public String lastOpenContainerName = null; - - public static SBInfo getInstance() { - return INSTANCE; - } + public String lastOpenContainerName = ""; private long lastManualLocRaw = -1; private long lastLocRaw = -1; @@ -77,7 +76,7 @@ public class SBInfo { locraw = null; mode = null; joinedWorld = System.currentTimeMillis(); - lastOpenContainerName = null; + lastOpenContainerName = ""; } @SubscribeEvent |
