Improve async lighting a bit
This commit is contained in:
@@ -245,7 +245,7 @@ public abstract class MixinChunk implements IMixinChunk {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Akari.isPrimaryThread(false)) {
|
||||
if (Akari.isPrimaryThread()) {
|
||||
try {
|
||||
lightExecutorService.execute(() -> {
|
||||
this.checkLightAsync(neighborChunks);
|
||||
|
||||
@@ -34,7 +34,7 @@ import net.minecraft.server.IChunkProvider;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.World;
|
||||
|
||||
@Mixin(value = World.class, remap = false, priority = 1001)
|
||||
@Mixin(value = World.class, remap = false, priority = 1002)
|
||||
public abstract class MixinWorld {
|
||||
@Shadow protected IChunkProvider chunkProvider;
|
||||
@Shadow int[] J; // PAIL: lightUpdateBlockList
|
||||
|
||||
@@ -47,7 +47,7 @@ import net.minecraft.server.MathHelper;
|
||||
import net.minecraft.server.WorldServer;
|
||||
import net.minecraft.server.BlockPosition.PooledBlockPosition;
|
||||
|
||||
@Mixin(value = WorldServer.class, remap = false)
|
||||
@Mixin(value = WorldServer.class, remap = false, priority = 1002)
|
||||
public abstract class MixinWorldServer extends MixinWorld implements IMixinWorldServer {
|
||||
|
||||
private static final int NUM_XZ_BITS = 4;
|
||||
|
||||
@@ -32,7 +32,7 @@ import io.akarin.api.internal.mixin.IMixinRealTimeTicking;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.World;
|
||||
|
||||
@Mixin(value = World.class, remap = false, priority = 1002)
|
||||
@Mixin(value = World.class, remap = false, priority = 1001)
|
||||
public abstract class MixinWorld implements IMixinRealTimeTicking {
|
||||
@Shadow @Nullable public abstract MinecraftServer getMinecraftServer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user