1.21 Port V

This commit is contained in:
IThundxr 2024-07-10 13:04:42 -04:00
parent 10d032c53e
commit dfbd451fdb
Failed to generate hash of commit

View file

@ -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;