Skip to content

Instantly share code, notes, and snippets.

@azenla
Created July 25, 2013 01:53
Show Gist options
  • Save azenla/6076260 to your computer and use it in GitHub Desktop.
Save azenla/6076260 to your computer and use it in GitHub Desktop.
ThreadDedicatedServer from MC, notice how it doesn't do what you think.
package net.minecraft.src;
import net.minecraft.server.DedicatedServer;
public final class ThreadDedicatedServer extends Thread {
final DedicatedServer field_96244_a;
public ThreadDedicatedServer(DedicatedServer par1DedicatedServer) {
this.field_96244_a = par1DedicatedServer;
}
public void run() {
this.field_96244_a.stopServer();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment