Replace anonymous thread creation with runnable constructor

This commit is contained in:
Brady 2018-08-29 18:32:16 -05:00
parent b073d591fb
commit 4b41c6b1d7
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -67,8 +67,7 @@ public final class CachedWorld implements IBlockTypeAccess {
// Insert an invalid region element // Insert an invalid region element
cachedRegions.put(0, null); cachedRegions.put(0, null);
new PackerThread().start(); new PackerThread().start();
new Thread() { new Thread(() -> {
public void run() {
try { try {
Thread.sleep(30000); Thread.sleep(30000);
while (true) { while (true) {
@ -81,8 +80,7 @@ public final class CachedWorld implements IBlockTypeAccess {
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }).start();
}.start();
} }
public final void queueForPacking(Chunk chunk) { public final void queueForPacking(Chunk chunk) {