mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-02 22:17:10 +00:00
Fix mixin error alongside Moonrise due to Overwrite
This commit is contained in:
1 parent
46d83f5ccd
commit
e9938be06e
1 file changed
+2
-2
@@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.Mixin;
|
|||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
|
||||||
@Mixin(ThreadedLevelLightEngine.class)
|
@Mixin(value = ThreadedLevelLightEngine.class, priority = 1010) // needs a higher priority so that it doesn't clash with Moonrise's @Overwrite
|
||||||
public abstract class MixinThreadedLevelLightEngine extends LevelLightEngine implements ThreadedLevelLightEngineExt {
|
public abstract class MixinThreadedLevelLightEngine extends LevelLightEngine implements ThreadedLevelLightEngineExt {
|
||||||
|
|
||||||
@Shadow
|
@Shadow
|
||||||
@@ -26,7 +26,7 @@ public abstract class MixinThreadedLevelLightEngine extends LevelLightEngine imp
|
|||||||
this.addTask(x, z, ThreadedLevelLightEngine.TaskType.POST_UPDATE, runnable);
|
this.addTask(x, z, ThreadedLevelLightEngine.TaskType.POST_UPDATE, runnable);
|
||||||
}
|
}
|
||||||
|
|
||||||
@WrapOperation(method = "runUpdate", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/lighting/LevelLightEngine;runLightUpdates()I"))
|
@WrapOperation(method = "runUpdate", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/level/lighting/LevelLightEngine;runLightUpdates()I"), require = 0)
|
||||||
public int runUpdate_runLightUpdates(ThreadedLevelLightEngine instance, Operation<Integer> original) {
|
public int runUpdate_runLightUpdates(ThreadedLevelLightEngine instance, Operation<Integer> original) {
|
||||||
if (Flashback.isInReplay()) {
|
if (Flashback.isInReplay()) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user