In favour of #678 - use supported class version

This commit is contained in:
md_5 2013-10-27 11:38:28 +11:00
parent 5dc91e3a01
commit 4dff25f880

View File

@ -39,9 +39,9 @@ public class Bootstrap
return; return;
} }
if ( !System.getProperty( "java.version" ).startsWith( "1.7" ) ) if ( Float.parseFloat( System.getProperty( "java.class.version" ) ) < 51.0 )
{ {
System.err.println( "*** ERROR *** BungeeCord requires Java 7 to function!" ); System.err.println( "*** ERROR *** BungeeCord requires Java 7 or above to function!" );
return; return;
} }