Skip to content

Commit

Permalink
Merge branch '1.16.x/dev' into 1.16.x/stable
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashyReese committed Dec 1, 2022
2 parents 4b657de + 265a8f0 commit 24e084a
Show file tree
Hide file tree
Showing 29 changed files with 619 additions and 327 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.14.9

# Mod Properties
mod_version=0.4.13
mod_version=0.4.14
maven_group=me.flashyreese.mods
archives_base_name=sodium-extra

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ protected CaffeineConfig createConfig() {
.addMixinOption("cloud", true)
.addMixinOption("compat", true) // Should not allow users to turn this off
.addMixinOption("fog", true)
.addMixinOption("fog.falloff", true)
.addMixinOption("fog_falloff", true)
.addMixinOption("gui", true)
.addMixinOption("instant_sneak", true)
.addMixinOption("light_updates", true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@Mixin(Window.class)
public class MixinWindow {
@Redirect(method = "setVsync", at = @At(value = "INVOKE", target = "Lorg/lwjgl/glfw/GLFW;glfwSwapInterval(I)V"))
@Redirect(method = "setVsync", at = @At(value = "INVOKE", target = "Lorg/lwjgl/glfw/GLFW;glfwSwapInterval(I)V", remap = false))
private void setSwapInterval(int interval) {
if (SodiumExtraClientMod.options().extraSettings.useAdaptiveSync) {
if (GLFW.glfwExtensionSupported("GLX_EXT_swap_control_tear") || GLFW.glfwExtensionSupported("WGL_EXT_swap_control_tear")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import java.util.List;

@Mixin(SodiumOptionsGUI.class)
@Mixin(value = SodiumOptionsGUI.class, remap = false)
public class MixinSodiumOptionsGUI {

@Shadow
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package me.flashyreese.mods.sodiumextra.mixin.fog_falloff;

import me.flashyreese.mods.sodiumextra.client.SodiumExtraClientMod;
import net.minecraft.client.render.BackgroundRenderer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyArg;

@Mixin(BackgroundRenderer.class)
public class MixinBackgroundRenderer {
@ModifyArg(method = "applyFog", at = @At(value = "INVOKE", target = "Lcom/mojang/blaze3d/systems/RenderSystem;fogStart(F)V"), index = 0)
private static float modifySetShaderFogStart(float original) {
float fogStart = (float) SodiumExtraClientMod.options().renderSettings.fogStart / 100;
return original * fogStart;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import java.util.List;

@Mixin(SodiumGameOptionPages.class)
@Mixin(value = SodiumGameOptionPages.class, remap = false)
public class MixinSodiumGameOptionPages {

@Shadow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import java.util.Random;

@Mixin(BlockRenderer.class)
@Mixin(value = BlockRenderer.class, remap = false)
public class MixinBlockRenderer {
@Shadow
@Final
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.List;
import java.util.Optional;

@Mixin(SodiumGameOptionPages.class)
@Mixin(value = SodiumGameOptionPages.class, remap = false)
public class MixinSodiumGameOptionPages {

@Shadow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(SodiumGameOptionPages.class)
@Mixin(value = SodiumGameOptionPages.class, remap = false)
public class MixinSodiumGameOptionsPages {
@Shadow
@Final
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/assets/sodium-extra/lang/cs_cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@
"options.particles.minecraft.soul_fire_flame.tooltip": "Appears on top of soul torches as a flame.",
"options.particles.minecraft.spit": "Plivnutí",
"options.particles.minecraft.spit.tooltip": "Llamas spitting at a player or mob.",
"options.particles.minecraft.splash": "Šplouch",
"options.particles.minecraft.splash.tooltip": "Emits around a spore blossom.",
"options.particles.minecraft.spore_blossom_air": "Vzduch prášenky",
"options.particles.minecraft.spore_blossom_air.tooltip": "Entities in water, wolves shaking off after swimming, boats.",
"options.particles.minecraft.spore_blossom_air.tooltip": "Emits around a spore blossom.",
"options.particles.minecraft.splash": "Šplouch",
"options.particles.minecraft.splash.tooltip": "Entities in water, wolves shaking off after swimming, boats.",
"options.particles.minecraft.squid_ink": "Inkoust z olihně",
"options.particles.minecraft.squid_ink.tooltip": "Produced by squid when attacked.",
"options.particles.minecraft.sweep_attack": "Plošný úder",
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/assets/sodium-extra/lang/de_de.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@
"options.particles.minecraft.soul_fire_flame.tooltip": "Appears on top of soul torches as a flame.",
"options.particles.minecraft.spit": "Spit",
"options.particles.minecraft.spit.tooltip": "Llamas spitting at a player or mob.",
"options.particles.minecraft.splash": "Splash",
"options.particles.minecraft.splash.tooltip": "Emits around a spore blossom.",
"options.particles.minecraft.spore_blossom_air": "Spore Blossom Air",
"options.particles.minecraft.spore_blossom_air.tooltip": "Entities in water, wolves shaking off after swimming, boats.",
"options.particles.minecraft.spore_blossom_air.tooltip": "Emits around a spore blossom.",
"options.particles.minecraft.splash": "Splash",
"options.particles.minecraft.splash.tooltip": "Entities in water, wolves shaking off after swimming, boats.",
"options.particles.minecraft.squid_ink": "Squid Ink",
"options.particles.minecraft.squid_ink.tooltip": "Produced by squid when attacked.",
"options.particles.minecraft.sweep_attack": "Sweep Attack",
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/assets/sodium-extra/lang/el_gr.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@
"options.particles.minecraft.soul_fire_flame.tooltip": "Appears on top of soul torches as a flame.",
"options.particles.minecraft.spit": "Spit",
"options.particles.minecraft.spit.tooltip": "Llamas spitting at a player or mob.",
"options.particles.minecraft.splash": "Splash",
"options.particles.minecraft.splash.tooltip": "Emits around a spore blossom.",
"options.particles.minecraft.spore_blossom_air": "Spore Blossom Air",
"options.particles.minecraft.spore_blossom_air.tooltip": "Entities in water, wolves shaking off after swimming, boats.",
"options.particles.minecraft.spore_blossom_air.tooltip": "Emits around a spore blossom.",
"options.particles.minecraft.splash": "Splash",
"options.particles.minecraft.splash.tooltip": "Entities in water, wolves shaking off after swimming, boats.",
"options.particles.minecraft.squid_ink": "Squid Ink",
"options.particles.minecraft.squid_ink.tooltip": "Produced by squid when attacked.",
"options.particles.minecraft.sweep_attack": "Sweep Attack",
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/assets/sodium-extra/lang/es_mx.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@
"options.particles.minecraft.soul_fire_flame.tooltip": "Aparece encima de las antorchas del alma como una llama.",
"options.particles.minecraft.spit": "Saliva",
"options.particles.minecraft.spit.tooltip": "Llamas escupiendo a un jugador o criatura.",
"options.particles.minecraft.splash": "Arrojadiza",
"options.particles.minecraft.splash.tooltip": "Emite alrededor de una flor de esporas.",
"options.particles.minecraft.spore_blossom_air": "Aire del Flor de Esporas",
"options.particles.minecraft.spore_blossom_air.tooltip": "Entidades en el agua, lobos sacudiéndose después de nadar, botes.",
"options.particles.minecraft.spore_blossom_air.tooltip": "Emite alrededor de una flor de esporas.",
"options.particles.minecraft.splash": "Arrojadiza",
"options.particles.minecraft.splash.tooltip": "Entidades en el agua, lobos sacudiéndose después de nadar, botes.",
"options.particles.minecraft.squid_ink": "Tinta de calamar",
"options.particles.minecraft.squid_ink.tooltip": "Producido por calamar cuando es atacado.",
"options.particles.minecraft.sweep_attack": "Ataque de barrido",
Expand Down Expand Up @@ -281,7 +281,7 @@
"sodium-extra.option.tutorial_toast": "Notificación de tutorial",
"sodium-extra.option.tutorial_toast.tooltip": "Si está habilitado, se mostrarán ventanas emergentes de tutorial.",
"sodium-extra.option.use_adaptive_sync.name": "Adaptivo",
"sodium-extra.option.use_adaptive_sync.tooltip": "If enabled, V-Sync will be able to swap mid-frame and disable itself at times, usually notably helping responsiveness. May cause issues with some GPU drivers.",
"sodium-extra.option.use_adaptive_sync.tooltip": "Si está habilitado, V-Sync podrá cambiar la fotograma media y deshabilitarse a sí mismo a veces, lo que generalmente ayuda notablemente a la tiempo de respuesta. Puede causar problemas con algunos controladores de GPU.",
"sodium-extra.option.use_fast_random": "Utilice aleatorio rápido",
"sodium-extra.option.use_fast_random.tooltip": "Si está habilitada, se utilizará una función aleatoria rápida para la representación de bloques. Esto puede afectar la rotación de texturas rotadas aleatoriamente en comparación con vainilla.",
"sodium-extra.overlay.coordinates": "X: %s, Y: %s, Z: %s",
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/assets/sodium-extra/lang/et_ee.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@
"options.particles.minecraft.soul_fire_flame.tooltip": "Appears on top of soul torches as a flame.",
"options.particles.minecraft.spit": "Sülg",
"options.particles.minecraft.spit.tooltip": "Llamas spitting at a player or mob.",
"options.particles.minecraft.splash": "Pritsmed",
"options.particles.minecraft.splash.tooltip": "Emits around a spore blossom.",
"options.particles.minecraft.spore_blossom_air": "Eoseõie õhk",
"options.particles.minecraft.spore_blossom_air.tooltip": "Entities in water, wolves shaking off after swimming, boats.",
"options.particles.minecraft.spore_blossom_air.tooltip": "Emits around a spore blossom.",
"options.particles.minecraft.splash": "Pritsmed",
"options.particles.minecraft.splash.tooltip": "Entities in water, wolves shaking off after swimming, boats.",
"options.particles.minecraft.squid_ink": "Kalmaari tint",
"options.particles.minecraft.squid_ink.tooltip": "Produced by squid when attacked.",
"options.particles.minecraft.sweep_attack": "Pühkiv rünne",
Expand Down
Loading

0 comments on commit 24e084a

Please sign in to comment.