Version Updates
This commit is contained in:
parent
34fd95ac11
commit
5622ae316a
4 changed files with 27 additions and 59 deletions
|
@ -1,28 +0,0 @@
|
|||
package org.betterx.betterend.mixin.client;
|
||||
|
||||
import org.betterx.betterend.integration.Integrations;
|
||||
|
||||
import net.minecraft.client.renderer.DimensionSpecialEffects.EndEffects;
|
||||
import net.minecraft.world.phys.Vec3;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(value = EndEffects.class, priority = 10)
|
||||
public class EndEffectsMixin {
|
||||
@Inject(method = "getBrightnessDependentFogColor", at = @At("HEAD"), cancellable = true)
|
||||
private void be_restoreBrightness(Vec3 color, float sunHeight, CallbackInfoReturnable<Vec3> info) {
|
||||
if (Integrations.ENDERSCAPE.modIsInstalled()) {
|
||||
info.setReturnValue(color.scale(0.15000000596046448D));
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(method = "isFoggyAt", at = @At("HEAD"), cancellable = true)
|
||||
private void be_restoreFog(int camX, int camY, CallbackInfoReturnable<Boolean> info) {
|
||||
if (Integrations.ENDERSCAPE.modIsInstalled()) {
|
||||
info.setReturnValue(false);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,23 +1,22 @@
|
|||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "org.betterx.betterend.mixin.client",
|
||||
"compatibilityLevel": "JAVA_16",
|
||||
"client": [
|
||||
"AbstractSoundInstanceAccessor",
|
||||
"HumanoidMobRendererMixin",
|
||||
"ArmorStandRendererMixin",
|
||||
"MinecraftClientMixin",
|
||||
"PlayerRendererMixin",
|
||||
"MusicTrackerMixin",
|
||||
"BiomeColorsMixin",
|
||||
"LocalPlayerMixin",
|
||||
"ModelLoaderMixin",
|
||||
"EndEffectsMixin",
|
||||
"CapeLayerMixin",
|
||||
"ItemStackMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "org.betterx.betterend.mixin.client",
|
||||
"compatibilityLevel": "JAVA_16",
|
||||
"client": [
|
||||
"AbstractSoundInstanceAccessor",
|
||||
"ArmorStandRendererMixin",
|
||||
"BiomeColorsMixin",
|
||||
"CapeLayerMixin",
|
||||
"HumanoidMobRendererMixin",
|
||||
"ItemStackMixin",
|
||||
"LocalPlayerMixin",
|
||||
"MinecraftClientMixin",
|
||||
"ModelLoaderMixin",
|
||||
"MusicTrackerMixin",
|
||||
"PlayerRendererMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,9 @@
|
|||
"minecraft": "1.19",
|
||||
"bclib": "2.0.x"
|
||||
},
|
||||
"breaks": {"bclib": "<2.0.1"},
|
||||
"breaks": {
|
||||
"bclib": "<2.0.3"
|
||||
},
|
||||
"suggests": {
|
||||
"byg": ">=1.1.3",
|
||||
"blockus": ">=2.0.2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue