Replace camera roll CT with mixin magic

This commit is contained in:
johni0702
2015-08-05 11:42:43 +02:00
parent 4efdc0ebd0
commit 83e5344448
3 changed files with 13 additions and 83 deletions

View File

@@ -234,4 +234,17 @@ public abstract class MixinEntityRenderer implements EntityRendererHandler.IEnti
GlStateManager.translate(0.0F, 0.0F, 0.1F);
}
}
/*
* Misc
*/
@Inject(method = "orientCamera", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/GlStateManager;translate(FFF)V", shift = At.Shift.AFTER, ordinal = 3))
private void setupCameraRoll(float partialTicks, CallbackInfo ci) {
if (ReplayHandler.isInReplay()) {
GL11.glRotated(ReplayHandler.getCameraTilt(), 0D, 0D, 1D);
}
}
}