Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
SpigotMC#2015: Add flag -Dbungee.native=false to disable native code.
Browse files Browse the repository at this point in the history
  • Loading branch information
md-5 committed Dec 3, 2016
1 parent ea66802 commit 71b00d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/main/java/net/md_5/bungee/jni/NativeCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ public boolean load()

public static boolean isSupported()
{
return "Linux".equals( System.getProperty( "os.name" ) ) && "amd64".equals( System.getProperty( "os.arch" ) );
return "Linux".equals( System.getProperty( "os.name" ) ) && "amd64".equals( System.getProperty( "os.arch" ) ) && Boolean.parseBoolean( System.getProperty( "bungee.native", "true" ) );
}
}

0 comments on commit 71b00d6

Please sign in to comment.