1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-01-30 19:40:37 +01:00

*crosses fingers for sneaky web edit

By: md-5 <md_5@live.com.au>
This commit is contained in:
Spigot 2013-02-27 17:14:37 +11:00
parent 78edae0084
commit 2c8cc83ee8

View file

@ -94,7 +94,7 @@ index bd0377a..73cb5b1 100644
try {
- this.r = new DedicatedServerConnection(this, inetaddress, this.G());
+ // Spigot start
+ this.r = (Boolean.getBoolean("org.spigotmc.netty.enabled"))
+ this.r = (!Boolean.getBoolean("org.spigotmc.netty.disabled"))
+ ? new org.spigotmc.netty.NettyServerConnection(this, inetaddress, this.G())
+ : new DedicatedServerConnection(this, inetaddress, this.G());
+ // Spigot end