@@ -6,9 +6,7 @@ import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.ModifyVariable;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(LightTexture.class)
|
||||
public class NightVisionMixin {
|
||||
@@ -19,7 +17,7 @@ public class NightVisionMixin {
|
||||
|
||||
@ModifyVariable(method = "updateLightTexture" ,at = @At(value = "NEW", target = "(FFF)Lorg/joml/Vector3f;",ordinal = 0), ordinal = 6)
|
||||
float customNightVision(float original) {
|
||||
if (this.minecraft.player != null && this.minecraft.player.) {
|
||||
if (this.minecraft.player != null && this.minecraft.player.isSpectator()) {
|
||||
return 1 ;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user