mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-02 17:01:38 +01:00
Remove bad condition in async lighting check
This commit is contained in:
parent
edfdff2218
commit
c3a07a7060
@ -141,7 +141,7 @@ index b681a9f..8ee0cec 100644
|
|||||||
+ int x = position.getX();
|
+ int x = position.getX();
|
||||||
+ int z = position.getZ();
|
+ int z = position.getZ();
|
||||||
+ final Chunk chunk = this.getChunkIfLoaded(x >> 4, z >> 4);
|
+ final Chunk chunk = this.getChunkIfLoaded(x >> 4, z >> 4);
|
||||||
+ if (chunk == null || (!chunk.world.paperSpigotConfig.useAsyncLighting && !chunk.areNeighborsLoaded(1))) {
|
+ if (chunk == null || !chunk.areNeighborsLoaded(1)) {
|
||||||
+ return false;
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user