Update CraftBukkit to Minecraft 1.3.1

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
CraftBukkit/Spigot
2012-07-29 02:33:13 -05:00
parent a45bcca987
commit 6e2987bb35
27 changed files with 253 additions and 126 deletions

View File

@@ -1,5 +1,6 @@
package org.bukkit.craftbukkit.util;
import net.minecraft.server.ExceptionWorldConflict;
import net.minecraft.server.MinecraftServer;
public class ServerShutdownThread extends Thread {
@@ -11,6 +12,15 @@ public class ServerShutdownThread extends Thread {
@Override
public void run() {
server.stop();
try {
server.stop();
} catch (ExceptionWorldConflict ex) {
ex.printStackTrace();
} finally {
try {
server.reader.getTerminal().restore();
} catch (Exception e) {
}
}
}
}