Skip to content

Commit

Permalink
Remove annotation causing IDEA errors and re-add Indigo.
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdAurora committed Nov 6, 2024
1 parent e0aa3d8 commit 904bdd5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}
Expand All @@ -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);
Expand Down

0 comments on commit 904bdd5

Please sign in to comment.