3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00

Remove unnecessary if statement, this is always true.

Dieser Commit ist enthalten in:
Mats 2016-03-19 21:53:26 +01:00
Ursprung b1b35fe025
Commit e894a3c733

Datei anzeigen

@ -136,7 +136,6 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI {
getLogger().warning("We failed to find the ServerConnection? :( What server are you running?"); getLogger().warning("We failed to find the ServerConnection? :( What server are you running?");
return; return;
} }
if (connection != null) {
for (Field field : connection.getClass().getDeclaredFields()) { for (Field field : connection.getClass().getDeclaredFields()) {
field.setAccessible(true); field.setAccessible(true);
final Object value = field.get(connection); final Object value = field.get(connection);
@ -165,7 +164,6 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI {
} }
} }
} }
}
System.setProperty("ViaVersion", getDescription().getVersion()); System.setProperty("ViaVersion", getDescription().getVersion());
} catch (Exception e) { } catch (Exception e) {
getLogger().severe("Unable to inject handlers, are you on 1.8? "); getLogger().severe("Unable to inject handlers, are you on 1.8? ");