-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve compatibility with worldthreader
- Loading branch information
Showing
4 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
common/src/main/java/net/caffeinemc/mods/lithium/mixin/util/accessors/LevelAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package net.caffeinemc.mods.lithium.mixin.util.accessors; | ||
|
||
import net.minecraft.world.level.Level; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(Level.class) | ||
public interface LevelAccessor { | ||
|
||
@Accessor | ||
Thread getThread(); | ||
} |
5 changes: 4 additions & 1 deletion
5
.../main/java/net/caffeinemc/mods/lithium/mixin/util/chunk_status_tracking/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
@MixinConfigOption( | ||
description = "Allows reacting to changes of the load status of chunks." | ||
description = "Allows reacting to changes of the load status of chunks.", | ||
depends = @MixinConfigDependency(dependencyPath = "mixin.util.accessors") | ||
|
||
) | ||
package net.caffeinemc.mods.lithium.mixin.util.chunk_status_tracking; | ||
|
||
import net.caffeinemc.gradle.MixinConfigDependency; | ||
import net.caffeinemc.gradle.MixinConfigOption; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters