Skip to content

Commit c2a3c41

Browse files
committed
Disable update check by empty host
1 parent 1ca923f commit c2a3c41

File tree

1 file changed

+4
-1
lines changed
  • bukkit/src/main/java/io/github/rothes/protocolstringreplacer

1 file changed

+4
-1
lines changed

bukkit/src/main/java/io/github/rothes/protocolstringreplacer/Updater.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ public void start() {
5858
Bukkit.getPluginManager().registerEvents(this, plugin);
5959
PsrScheduler.runTaskTimerAsynchronously(() -> {
6060
try {
61-
String json = getJson(plugin.getConfigManager().gitRawHost, 0);
61+
String host = plugin.getConfigManager().gitRawHost;
62+
if (host.isEmpty()) return;
63+
64+
String json = getJson(host, 0);
6265
if (json == null) {
6366
return;
6467
}

0 commit comments

Comments
 (0)