0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Clean up GameRendererMixin

This commit is contained in:
Alexander01998 2021-01-19 17:15:05 +01:00
parent c6e34d4a68
commit b9682f6aaf

View File

@ -106,7 +106,8 @@ public abstract class GameRendererMixin
method = {
"getNightVisionStrength(Lnet/minecraft/entity/LivingEntity;F)F"},
cancellable = true)
private static void onNightVisionStrength(LivingEntity en, float f, CallbackInfoReturnable<Float> cir)
private static void onGetNightVisionStrength(LivingEntity livingEntity,
float f, CallbackInfoReturnable<Float> cir)
{
if(WurstClient.INSTANCE.getHax().fullbrightHack.isNightVisionActive())
cir.setReturnValue(1F);