From 904bdd50582e0424b88f3f77afac8b47c467f202 Mon Sep 17 00:00:00 2001 From: LambdAurora Date: Wed, 6 Nov 2024 22:33:19 +0100 Subject: [PATCH] Remove annotation causing IDEA errors and re-add Indigo. --- build.gradle.kts | 1 + .../java/dev/lambdaurora/lambdynlights/LambDynLights.java | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 4117381a..a2b48a66 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -60,6 +60,7 @@ dependencies { modImplementation(libs.fabric.loader) fabricApiModules.forEach { modImplementation(it) } + modRuntimeOnly(fabricApi.module("fabric-renderer-indigo", libs.versions.fabric.api.get())) implementation(libs.nightconfig.core) implementation(libs.nightconfig.toml) diff --git a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLights.java b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLights.java index 36f16027..f3017c6c 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/LambDynLights.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/LambDynLights.java @@ -39,7 +39,6 @@ import net.minecraft.world.entity.player.Player; import net.minecraft.world.level.BlockAndTintGetter; import org.jetbrains.annotations.ApiStatus; -import org.jetbrains.annotations.Async; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.slf4j.Logger; @@ -338,7 +337,6 @@ public static void warn(Logger logger, String msg, Object... args) { * @param renderer the renderer * @param chunkPos the chunk position */ - @Async.Schedule public static void scheduleChunkRebuild(@NotNull LevelRenderer renderer, @NotNull BlockPos chunkPos) { scheduleChunkRebuild(renderer, chunkPos.getX(), chunkPos.getY(), chunkPos.getZ()); } @@ -349,12 +347,10 @@ public static void scheduleChunkRebuild(@NotNull LevelRenderer renderer, @NotNul * @param renderer the renderer * @param chunkPos the packed chunk position */ - @Async.Schedule public static void scheduleChunkRebuild(@NotNull LevelRenderer renderer, long chunkPos) { scheduleChunkRebuild(renderer, BlockPos.unpackLongX(chunkPos), BlockPos.unpackLongY(chunkPos), BlockPos.unpackLongZ(chunkPos)); } - @Async.Schedule public static void scheduleChunkRebuild(@NotNull LevelRenderer renderer, int x, int y, int z) { if (Minecraft.getInstance().level != null) ((WorldRendererAccessor) renderer).lambdynlights$scheduleChunkRebuild(x, y, z, false);