Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,10 @@ subprojects { p ->
}
}
}

def buildAndGather = tasks.register('buildAndGather') {
group = 'build'
description = 'Build all version subprojects and collect their mod jars into build/libs.'
dependsOn collectJars
subprojects.each { p -> dependsOn("${p.path}:build") }
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
public class ClientChunkLightRecomputeMixin {

@Inject(method = "applyLightData", at = @At("TAIL"))
//#if MC>=12002
//#if MC>=12102
private void nebRecomputeStrippedLight(int x, int z, ClientboundLightUpdatePacketData lightData, boolean trustEdges, CallbackInfo ci) {
//#else
//$$ private void nebRecomputeStrippedLight(int x, int z, ClientboundLightUpdatePacketData lightData, CallbackInfo ci) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface ClientPlayNetworkHandlerInvoker {
@Invoker("updateLevelChunk")
void nebLoadChunk(int x, int z, ClientboundLevelChunkPacketData chunkData);

//#if MC>=12002
//#if MC>=12102
@Invoker("applyLightData")
void nebReadLightData(int x, int z, ClientboundLightUpdatePacketData lightData, boolean bl);
//#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ public static void registerClient() {
if (world != null) {
// 26.1: ClientLevel.enqueueChunkUpdate is gone; just run on the client thread.
net.minecraft.client.Minecraft.getInstance().execute(() -> {
//#if MC>=12102
invoker.nebReadLightData(x, z, lightData, false);
//#else
//$$ invoker.nebReadLightData(x, z, lightData);
//#endif
var worldChunk = world.getChunkSource().getChunkNow(x, z);
if (worldChunk != null) {
invoker.nebScheduleRenderChunk(worldChunk, x, z);
Expand Down
Loading