Update to 1.21
This commit is contained in:
@@ -11,6 +11,10 @@ import net.minecraft.client.util.ScreenshotUtils;
|
||||
import static com.replaymod.core.versions.MCVer.popMatrix;
|
||||
import static com.replaymod.core.versions.MCVer.pushMatrix;
|
||||
|
||||
//#if MC>=12100
|
||||
//$$ import net.minecraft.client.render.RenderTickCounter;
|
||||
//#endif
|
||||
|
||||
//#if MC>=11500
|
||||
import net.minecraft.client.util.math.MatrixStack;
|
||||
//#endif
|
||||
@@ -73,6 +77,9 @@ public class NoGuiScreenshot {
|
||||
GlStateManager.enableTexture();
|
||||
//#endif
|
||||
|
||||
//#if MC>=12100
|
||||
//$$ mc.gameRenderer.renderWorld(RenderTickCounter.ONE);
|
||||
//#else
|
||||
float tickDelta = mc.getTickDelta();
|
||||
//#if MC>=12006
|
||||
//$$ mc.gameRenderer.renderWorld(tickDelta, System.nanoTime());
|
||||
@@ -89,6 +96,7 @@ public class NoGuiScreenshot {
|
||||
//#endif
|
||||
//#endif
|
||||
//#endif
|
||||
//#endif
|
||||
|
||||
mc.getFramebuffer().endWrite();
|
||||
popMatrix();
|
||||
|
||||
@@ -22,7 +22,11 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
public class MixinCamera {
|
||||
@Shadow @Final private MinecraftClient client;
|
||||
//#if MC>=12005
|
||||
//#if MC>=12100
|
||||
//$$ @ModifyExpressionValue(method = "renderWorld", at = @At(value = "INVOKE", target = "Lorg/joml/Matrix4f;rotation(Lorg/joml/Quaternionfc;)Lorg/joml/Matrix4f;"))
|
||||
//#else
|
||||
//$$ @ModifyExpressionValue(method = "renderWorld", at = @At(value = "INVOKE", target = "Lorg/joml/Matrix4f;rotationXYZ(FFF)Lorg/joml/Matrix4f;"))
|
||||
//#endif
|
||||
//$$ private Matrix4f applyRoll(Matrix4f matrix) {
|
||||
//#else
|
||||
@Inject(
|
||||
|
||||
Reference in New Issue
Block a user