Fix all warnings
Add and make use of Lombok Remove Mojang API Remove ZipFileUtils Remove StreamTools in favor of Apache IOUtils Keyframe should be abstract all derivatives final Replace clone in Keyframe with copy Move some constants from GuiReplaySetttings to GuiConstants
This commit is contained in:
@@ -29,20 +29,16 @@ public class ChatMessageHandler {
|
||||
|
||||
|
||||
private boolean active = true;
|
||||
private boolean alive = true;
|
||||
private Queue<IChatComponent> requests = new ConcurrentLinkedQueue<IChatComponent>();
|
||||
private EntityPlayerSP player = null;
|
||||
public Thread t = new Thread(new Runnable() {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
while(alive) {
|
||||
while(!Thread.currentThread().isInterrupted()) {
|
||||
while(active) {
|
||||
try {
|
||||
while(player == null) {
|
||||
if(!alive) {
|
||||
break;
|
||||
}
|
||||
Thread.sleep(100);
|
||||
player = Minecraft.getMinecraft().thePlayer;
|
||||
}
|
||||
@@ -67,6 +63,7 @@ public class ChatMessageHandler {
|
||||
}, "replaymod-chat-message-handler");
|
||||
|
||||
public ChatMessageHandler() {
|
||||
t.setDaemon(true);
|
||||
t.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user