diff --git a/gradle.properties b/gradle.properties index 8a40be7b..6e82fd92 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,6 @@ # Done to increase the memory available to gradle. org.gradle.jvmargs=-Xmx1G +org.gradle.daemon=false # Fabric Properties # check these on https://modmuss50.me/fabric.html minecraft_version=1.16.5 diff --git a/src/main/java/ca/spottedleaf/starlight/mixin/client/multiplayer/ClientPacketListenerMixin.java b/src/main/java/ca/spottedleaf/starlight/mixin/client/multiplayer/ClientPacketListenerMixin.java index b72c70b9..bf715dbb 100644 --- a/src/main/java/ca/spottedleaf/starlight/mixin/client/multiplayer/ClientPacketListenerMixin.java +++ b/src/main/java/ca/spottedleaf/starlight/mixin/client/multiplayer/ClientPacketListenerMixin.java @@ -9,6 +9,7 @@ import net.minecraft.network.protocol.game.ClientboundLevelChunkPacket; import net.minecraft.world.level.ChunkPos; import net.minecraft.world.level.LightLayer; +import net.minecraft.world.level.chunk.ChunkStatus; import net.minecraft.world.level.chunk.DataLayer; import net.minecraft.world.level.chunk.LevelChunk; import net.minecraft.world.level.lighting.LevelLightEngine; @@ -78,7 +79,7 @@ private void unloadLightDataHook(final ClientboundForgetLevelChunkPacket clientb private void postChunkLoadHook(final ClientboundLevelChunkPacket clientboundLevelChunkPacket, final CallbackInfo ci) { final int chunkX = clientboundLevelChunkPacket.getX(); final int chunkZ = clientboundLevelChunkPacket.getZ(); - final LevelChunk chunk = this.level.getChunk(chunkX, chunkZ); + final LevelChunk chunk = (LevelChunk)this.level.getChunk(chunkX, chunkZ, ChunkStatus.FULL, false); if (chunk == null) { // failed to load return;