mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-17 10:24:23 +01:00
Fix mixin
This commit is contained in:
parent
9a7671f4f7
commit
e8292e20ec
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ abstract class MixinGameRenderer implements AutoCloseable, SynchronousResourceRe
|
||||||
WorldRenderDelegate.INSTANCE.applyWorldTransform(matrices, tickDelta);
|
WorldRenderDelegate.INSTANCE.applyWorldTransform(matrices, tickDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject(method = "getNightVisionStrength(FJLnet/minecraft/entity/LivingEntity;F)F",
|
@Inject(method = "getNightVisionStrength(Lnet/minecraft/entity/LivingEntity;F)F",
|
||||||
at = @At("HEAD"),
|
at = @At("HEAD"),
|
||||||
cancellable = true)
|
cancellable = true)
|
||||||
private static void onGetNightVisionStrengthHead(LivingEntity entity, float tickDelta, CallbackInfoReturnable<Float> info) {
|
private static void onGetNightVisionStrengthHead(LivingEntity entity, float tickDelta, CallbackInfoReturnable<Float> info) {
|
||||||
|
@ -44,7 +44,7 @@ abstract class MixinGameRenderer implements AutoCloseable, SynchronousResourceRe
|
||||||
info.setReturnValue(UnicopiaClient.getWorldBrightness(0));
|
info.setReturnValue(UnicopiaClient.getWorldBrightness(0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Inject(method = "getNightVisionStrength(FJLnet/minecraft/entity/LivingEntity;F)F",
|
@Inject(method = "getNightVisionStrength(Lnet/minecraft/entity/LivingEntity;F)F",
|
||||||
at = @At("RETURN"),
|
at = @At("RETURN"),
|
||||||
cancellable = true)
|
cancellable = true)
|
||||||
private static void onGetNightVisionStrengthReturn(LivingEntity entity, float tickDelta, CallbackInfoReturnable<Float> info) {
|
private static void onGetNightVisionStrengthReturn(LivingEntity entity, float tickDelta, CallbackInfoReturnable<Float> info) {
|
||||||
|
|
Loading…
Reference in a new issue