Removed setDefaultUseCaches(false)

Calling this method causes SpongeForge to crash later
https://forums.spongepowered.org/t/spongeforge-crashes-in-odd-circumstances/34699/4

Affects issues:
- Fixed #1296, #1291, #1292
This commit is contained in:
Rsl1122 2020-01-19 12:27:38 +02:00
parent 6d90752f5d
commit 78b3239a63

View File

@ -75,7 +75,6 @@ public class IP2CGeolocator implements Geolocator {
HttpURLConnection connection = null;
try {
connection = (HttpURLConnection) new URL("http://ip2c.org/" + address).openConnection();
connection.setDefaultUseCaches(false);
connection.setUseCaches(false);
connection.connect();
try (