Extract Mixin_ChromaKeyDisableFog from other mixins
This commit is contained in:
@@ -84,17 +84,6 @@ public abstract class MixinEntityRenderer implements EntityRendererHandler.IEnti
|
||||
//$$ }
|
||||
//#endif
|
||||
|
||||
// Moved to MixinFogRenderer in 1.13
|
||||
//#if MC<11400
|
||||
//$$ @Inject(method = "setupFog", at = @At("HEAD"), cancellable = true)
|
||||
//$$ private void replayModRender_onSetupFog(int fogDistanceFlag, float partialTicks, CallbackInfo ci) {
|
||||
//$$ if (replayModRender_handler == null) return;
|
||||
//$$ if (replayModRender_handler.getSettings().getChromaKeyingColor() != null) {
|
||||
//$$ ci.cancel();
|
||||
//$$ }
|
||||
//$$ }
|
||||
//#endif
|
||||
|
||||
@Inject(method = "renderHand", at = @At("HEAD"), cancellable = true)
|
||||
private void replayModRender_renderSpectatorHand(
|
||||
//#if MC>=11500
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
//#if MC>=11400
|
||||
package com.replaymod.render.mixin;
|
||||
|
||||
import com.replaymod.core.versions.MCVer;
|
||||
@@ -9,12 +8,8 @@ import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
//#if MC>=11400
|
||||
import net.minecraft.client.render.Camera;
|
||||
//#endif
|
||||
|
||||
@Mixin(BackgroundRenderer.class)
|
||||
public abstract class MixinFogRenderer {
|
||||
public abstract class Mixin_ChromaKeyDisableFog {
|
||||
@Inject(method = "applyFog", at = @At("HEAD"), cancellable = true)
|
||||
private
|
||||
//#if MC>=11500
|
||||
@@ -29,4 +24,3 @@ public abstract class MixinFogRenderer {
|
||||
}
|
||||
}
|
||||
}
|
||||
//#endif
|
||||
Reference in New Issue
Block a user