mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 11:27:54 +01:00
1.21 Port V
This commit is contained in:
parent
10d032c53e
commit
dfbd451fdb
1 changed files with 0 additions and 6 deletions
|
@ -13,7 +13,6 @@ import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.At.Shift;
|
import org.spongepowered.asm.mixin.injection.At.Shift;
|
||||||
import org.spongepowered.asm.mixin.injection.Group;
|
import org.spongepowered.asm.mixin.injection.Group;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.sugar.Share;
|
import com.llamalad7.mixinextras.sugar.Share;
|
||||||
|
@ -61,11 +60,6 @@ abstract class LevelRendererMixin {
|
||||||
FlwImplXplat.INSTANCE.dispatchBeginFrameEvent(flywheel$renderContext);
|
FlwImplXplat.INSTANCE.dispatchBeginFrameEvent(flywheel$renderContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Redirect(method = "renderLevel", at = @At(value = "NEW", target = "()Lcom/mojang/blaze3d/vertex/PoseStack;"))
|
|
||||||
private PoseStack flywheel$fixPoseStack(@Share("flywheel$poseStack") LocalRef<PoseStack> poseStack) {
|
|
||||||
return poseStack.get();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Inject(method = "renderLevel", at = @At("RETURN"))
|
@Inject(method = "renderLevel", at = @At("RETURN"))
|
||||||
private void flywheel$endRender(CallbackInfo ci) {
|
private void flywheel$endRender(CallbackInfo ci) {
|
||||||
flywheel$renderContext = null;
|
flywheel$renderContext = null;
|
||||||
|
|
Loading…
Reference in a new issue