mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-04-01 01:05:27 +02: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)
|
@Mixin(Camera.class)
|
||||||
abstract class MixinCamera {
|
abstract class MixinCamera {
|
||||||
@Inject(method = "clipToSpace(D)D",
|
@Inject(method = "clipToSpace(F)F",
|
||||||
at = @At("RETURN"),
|
at = @At("RETURN"),
|
||||||
cancellable = true)
|
cancellable = true)
|
||||||
private void redirectCameraDistance(double initial, CallbackInfoReturnable<Double> info) {
|
private void redirectCameraDistance(float initial, CallbackInfoReturnable<Float> info) {
|
||||||
double value = info.getReturnValueD();
|
float value = info.getReturnValueF();
|
||||||
|
|
||||||
Pony pony = Pony.getManager().getPony(MinecraftClient.getInstance().player);
|
Pony pony = Pony.getManager().getPony(MinecraftClient.getInstance().player);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue