@@ -1,4 +1,4 @@
|
||||
From 1b5963ba99c0a14dab58c11b058986ed15f21e9d Mon Sep 17 00:00:00 2001
|
||||
From b2a1a9e6f482c69b791f4a6d4dac0ef3f3504e89 Mon Sep 17 00:00:00 2001
|
||||
From: slide23 <me@slide.ws>
|
||||
Date: Fri, 20 Dec 2013 20:15:33 -0600
|
||||
Subject: [PATCH] Add Late Bind Option
|
||||
@@ -6,17 +6,15 @@ Subject: [PATCH] Add Late Bind Option
|
||||
Add late-bind config option to delay binding until loading is done.
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||
old mode 100644
|
||||
new mode 100755
|
||||
index c9bb3a6..8ec6474
|
||||
index 7946703..e91d53f 100644
|
||||
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||
@@ -119,13 +119,15 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
|
||||
this.a(MinecraftEncryption.b());
|
||||
h.info("Starting Minecraft server on " + (this.getServerIp().length() == 0 ? "*" : this.getServerIp()) + ":" + this.J());
|
||||
h.info("Starting Minecraft server on " + (this.getServerIp().length() == 0 ? "*" : this.getServerIp()) + ":" + this.K());
|
||||
|
||||
- try {
|
||||
- this.ag().a(inetaddress, this.J());
|
||||
- this.ah().a(inetaddress, this.K());
|
||||
- } catch (Throwable ioexception) { // CraftBukkit - IOException -> Throwable
|
||||
- h.warn("**** FAILED TO BIND TO PORT!");
|
||||
- h.warn("The exception was: {}", new Object[] { ioexception.toString()});
|
||||
@@ -24,7 +22,7 @@ index c9bb3a6..8ec6474
|
||||
- return false;
|
||||
+ if (!org.spigotmc.SpigotConfig.lateBind) {
|
||||
+ try {
|
||||
+ this.ag().a(inetaddress, this.J());
|
||||
+ this.ah().a(inetaddress, this.K());
|
||||
+ } catch (Throwable ioexception) { // CraftBukkit - IOException -> Throwable
|
||||
+ h.warn("**** FAILED TO BIND TO PORT!");
|
||||
+ h.warn("The exception was: {}", new Object[] { ioexception.toString()});
|
||||
@@ -41,7 +39,7 @@ index c9bb3a6..8ec6474
|
||||
+
|
||||
+ if (org.spigotmc.SpigotConfig.lateBind) {
|
||||
+ try {
|
||||
+ this.ag().a(inetaddress, this.J());
|
||||
+ this.ah().a(inetaddress, this.K());
|
||||
+ } catch (Throwable ioexception) { // CraftBukkit - IOException -> Throwable
|
||||
+ h.warn("**** FAILED TO BIND TO PORT!");
|
||||
+ h.warn("The exception was: {}", new Object[] { ioexception.toString()});
|
||||
@@ -68,5 +66,5 @@ index cfddd28..69306cb 100644
|
||||
+ }
|
||||
}
|
||||
--
|
||||
1.8.3.2
|
||||
1.8.5.2.msysgit.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user