mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Update mixin
This commit is contained in:
parent
7f89ef646e
commit
d11fbf63f2
1 changed files with 3 additions and 3 deletions
|
@ -12,11 +12,11 @@ import net.minecraft.client.render.Camera;
|
|||
|
||||
@Mixin(Camera.class)
|
||||
abstract class MixinCamera {
|
||||
@Inject(method = "clipToSpace(D)D",
|
||||
@Inject(method = "clipToSpace(F)F",
|
||||
at = @At("RETURN"),
|
||||
cancellable = true)
|
||||
private void redirectCameraDistance(double initial, CallbackInfoReturnable<Double> info) {
|
||||
double value = info.getReturnValueD();
|
||||
private void redirectCameraDistance(float initial, CallbackInfoReturnable<Float> info) {
|
||||
float value = info.getReturnValueF();
|
||||
|
||||
Pony pony = Pony.getManager().getPony(MinecraftClient.getInstance().player);
|
||||
|
||||
|
|
Loading…
Reference in a new issue