Skip to content

Commit

Permalink
Merge branch '1.19.x/dev' into 1.19.x/stable
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashyReese committed May 1, 2023
2 parents a763246 + f7ab1ac commit ff2133b
Show file tree
Hide file tree
Showing 37 changed files with 566 additions and 261 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {

plugins {
id 'signing'
id 'fabric-loom' version '1.1-SNAPSHOT'
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'maven-publish'
id 'io.github.juuxel.loom-quiltflower' version '1.8.0'
}
Expand Down Expand Up @@ -61,6 +61,7 @@ dependencies {
modImplementation "maven.modrinth:sodium:${project.sodium_version}"
modImplementation("me.flashyreese.mods:reeses-sodium-options:${project.reeses_sodium_options}") {
exclude group: "net.coderbot.iris_mc1_19", module: "iris"
exclude group: "maven.modrinth", module: "iris"
}
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

Expand All @@ -72,7 +73,7 @@ dependencies {
include(modImplementation("net.caffeinemc:CaffeineConfig:1.1.0+1.17"))
include(modImplementation("de.guntram.mcmod:crowdin-translate:${project.crowdin_translate}"))

modRuntimeOnly "maven.modrinth:lazydfu:0.1.3"
//modRuntimeOnly "maven.modrinth:lazydfu:0.1.3"
}

processResources {
Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.1
loader_version=0.14.17
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.5
loader_version=0.14.19

# Mod Properties
mod_version=0.4.18
mod_version=0.4.19
maven_group=me.flashyreese.mods
archives_base_name=sodium-extra

# Dependencies
reeses_sodium_options=1.5.0+mc1.19.4-build.72
sodium_version=mc1.19.4-0.4.10
fabric_version=0.75.3+1.19.4
reeses_sodium_options=1.4.9+mc1.19.2-build.67
sodium_version=mc1.19.3-0.4.11
fabric_version=0.76.1+1.19.3
crowdin_translate=1.4+1.19.3
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
12 changes: 8 additions & 4 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand All @@ -80,10 +80,10 @@ do
esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
Expand Down Expand Up @@ -143,12 +143,16 @@ fi
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
Expand Down
1 change: 1 addition & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand Down

This file was deleted.

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

import me.flashyreese.mods.sodiumextra.client.SodiumExtraClientMod;
import me.jellysquid.mods.sodium.client.model.quad.ModelQuadView;
import me.jellysquid.mods.sodium.client.model.quad.blender.BiomeColorBlender;
import me.jellysquid.mods.sodium.client.model.quad.blender.ColorSampler;
import net.caffeinemc.mods.sodium.api.util.ColorARGB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.BlockRenderView;
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.callback.CallbackInfoReturnable;

import java.util.Arrays;

@Mixin(value = BiomeColorBlender.class, remap = false)
public abstract class MixinBiomeColorBlender {
@Shadow
@Final
private boolean useSmoothBlending;
@Shadow
@Final
private int[] cachedRet;

@Shadow
protected abstract <T> void getColorsLinear(BlockRenderView world, BlockPos origin, ModelQuadView quad, ColorSampler<T> sampler, T state, int[] colors);

/**
* @author FlashyReese
*/
@Inject(method = "getColors", at = @At(value = "HEAD"), cancellable = true)
private <T> void getColors(BlockRenderView world, BlockPos origin, ModelQuadView quad, ColorSampler<T> sampler, T state, CallbackInfoReturnable<int[]> cir) {
if (this.useSmoothBlending && SodiumExtraClientMod.options().renderSettings.useLinearFlatColorBlender) {
int[] colors = this.cachedRet;
this.getColorsLinearFlat(world, origin, quad, sampler, state, colors);
cir.setReturnValue(colors);
}
}

private <T> void getColorsLinearFlat(BlockRenderView world, BlockPos origin, ModelQuadView quad, ColorSampler<T> sampler, T state, int[] colors) {
this.getColorsLinear(world, origin, quad, sampler, state, colors);

int a = Arrays.stream(colors).map(ColorARGB::unpackAlpha).sum();
int r = Arrays.stream(colors).map(ColorARGB::unpackRed).sum();
int g = Arrays.stream(colors).map(ColorARGB::unpackGreen).sum();
int b = Arrays.stream(colors).map(ColorARGB::unpackBlue).sum();

int color = ColorARGB.pack(r / colors.length, g / colors.length, b / colors.length, a / colors.length);
Arrays.fill(colors, color);
}
}

This file was deleted.

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 @@ -97,7 +97,7 @@
"options.particles.minecraft.fishing": "Rybolov",
"options.particles.minecraft.fishing.tooltip": "Rybaření.",
"options.particles.minecraft.flame": "Plamen",
"options.particles.minecraft.flame.tooltip": "Torches, furnaces, magma cubes, spawners.",
"options.particles.minecraft.flame.tooltip": "Torches, furnaces, magma cubes, monster spawners.",
"options.particles.minecraft.flash": "Záblesk rachejtle",
"options.particles.minecraft.flash.tooltip": "Flash light when firework rocket explodes.",
"options.particles.minecraft.glow": "Záře",
Expand Down Expand Up @@ -135,7 +135,7 @@
"options.particles.minecraft.note": "Nota",
"options.particles.minecraft.note.tooltip": "Emitted from note blocks.",
"options.particles.minecraft.poof": "Puf",
"options.particles.minecraft.poof.tooltip": "Explosions, death of mobs, mobs spawned from a spawner, silverfish infesting blocks.",
"options.particles.minecraft.poof.tooltip": "Explosions, death of mobs, mobs spawned from a monster spawner, silverfish infesting blocks.",
"options.particles.minecraft.portal": "Portál",
"options.particles.minecraft.portal.tooltip": "Nether portals, enderman, endermites, ender pearls, eyes of ender, ender chests, dragon eggs, teleporting from eating chorus fruits, end gateway portals.",
"options.particles.minecraft.rain": "Déšť",
Expand All @@ -155,7 +155,7 @@
"options.particles.minecraft.small_flame": "Malý plamen",
"options.particles.minecraft.small_flame.tooltip": "Small Flame.",
"options.particles.minecraft.smoke": "Kouř",
"options.particles.minecraft.smoke.tooltip": "Torches, primed TNT, droppers, dispensers, end portals, brewing stands, spawners, furnaces, ghast fireballs, wither skulls, taming, withers, lava (when raining), placing an eye of ender in an end portal frame, redstone torches burning out, food items on campfire.",
"options.particles.minecraft.smoke.tooltip": "Torches, primed TNT, droppers, dispensers, end portals, brewing stands, monster spawners, furnaces, ghast fireballs, wither skulls, taming, withers, lava (when raining), placing an eye of ender in an end portal frame, redstone torches burning out, food items on campfire.",
"options.particles.minecraft.sneeze": "Kýchnutí",
"options.particles.minecraft.sneeze.tooltip": "Baby pandas sneezing.",
"options.particles.minecraft.snowflake": "Sněhová vločka",
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/assets/sodium-extra/lang/de_at.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"options.particles.minecraft.fishing": "Fischen",
"options.particles.minecraft.fishing.tooltip": "Fischen.",
"options.particles.minecraft.flame": "Flamme",
"options.particles.minecraft.flame.tooltip": "Fackeln, Öfen, Magmawürfel, Mob-Spawner.",
"options.particles.minecraft.flame.tooltip": "Torches, furnaces, magma cubes, monster spawners.",
"options.particles.minecraft.flash": "Flash",
"options.particles.minecraft.flash.tooltip": "Flash light when firework rocket explodes.",
"options.particles.minecraft.glow": "Leuchten",
Expand Down Expand Up @@ -135,7 +135,7 @@
"options.particles.minecraft.note": "Note",
"options.particles.minecraft.note.tooltip": "Emitted from note blocks.",
"options.particles.minecraft.poof": "Poof",
"options.particles.minecraft.poof.tooltip": "Explosions, death of mobs, mobs spawned from a spawner, silverfish infesting blocks.",
"options.particles.minecraft.poof.tooltip": "Explosions, death of mobs, mobs spawned from a monster spawner, silverfish infesting blocks.",
"options.particles.minecraft.portal": "Portal",
"options.particles.minecraft.portal.tooltip": "Nether portals, enderman, endermites, ender pearls, eyes of ender, ender chests, dragon eggs, teleporting from eating chorus fruits, end gateway portals.",
"options.particles.minecraft.rain": "Regen",
Expand All @@ -155,7 +155,7 @@
"options.particles.minecraft.small_flame": "Small Flame",
"options.particles.minecraft.small_flame.tooltip": "Small Flame.",
"options.particles.minecraft.smoke": "Smoke",
"options.particles.minecraft.smoke.tooltip": "Torches, primed TNT, droppers, dispensers, end portals, brewing stands, spawners, furnaces, ghast fireballs, wither skulls, taming, withers, lava (when raining), placing an eye of ender in an end portal frame, redstone torches burning out, food items on campfire.",
"options.particles.minecraft.smoke.tooltip": "Torches, primed TNT, droppers, dispensers, end portals, brewing stands, monster spawners, furnaces, ghast fireballs, wither skulls, taming, withers, lava (when raining), placing an eye of ender in an end portal frame, redstone torches burning out, food items on campfire.",
"options.particles.minecraft.sneeze": "Niesen",
"options.particles.minecraft.sneeze.tooltip": "Baby pandas sneezing.",
"options.particles.minecraft.snowflake": "Schneeflocke",
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/assets/sodium-extra/lang/de_ch.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"options.particles.minecraft.fishing": "Fischen",
"options.particles.minecraft.fishing.tooltip": "Fischen.",
"options.particles.minecraft.flame": "Flamme",
"options.particles.minecraft.flame.tooltip": "Fackeln, Öfen, Magmawürfel, Mob-Spawner.",
"options.particles.minecraft.flame.tooltip": "Torches, furnaces, magma cubes, monster spawners.",
"options.particles.minecraft.flash": "Flash",
"options.particles.minecraft.flash.tooltip": "Flash light when firework rocket explodes.",
"options.particles.minecraft.glow": "Leuchten",
Expand Down Expand Up @@ -135,7 +135,7 @@
"options.particles.minecraft.note": "Note",
"options.particles.minecraft.note.tooltip": "Emitted from note blocks.",
"options.particles.minecraft.poof": "Poof",
"options.particles.minecraft.poof.tooltip": "Explosions, death of mobs, mobs spawned from a spawner, silverfish infesting blocks.",
"options.particles.minecraft.poof.tooltip": "Explosions, death of mobs, mobs spawned from a monster spawner, silverfish infesting blocks.",
"options.particles.minecraft.portal": "Portal",
"options.particles.minecraft.portal.tooltip": "Nether portals, enderman, endermites, ender pearls, eyes of ender, ender chests, dragon eggs, teleporting from eating chorus fruits, end gateway portals.",
"options.particles.minecraft.rain": "Regen",
Expand All @@ -155,7 +155,7 @@
"options.particles.minecraft.small_flame": "Small Flame",
"options.particles.minecraft.small_flame.tooltip": "Small Flame.",
"options.particles.minecraft.smoke": "Smoke",
"options.particles.minecraft.smoke.tooltip": "Torches, primed TNT, droppers, dispensers, end portals, brewing stands, spawners, furnaces, ghast fireballs, wither skulls, taming, withers, lava (when raining), placing an eye of ender in an end portal frame, redstone torches burning out, food items on campfire.",
"options.particles.minecraft.smoke.tooltip": "Torches, primed TNT, droppers, dispensers, end portals, brewing stands, monster spawners, furnaces, ghast fireballs, wither skulls, taming, withers, lava (when raining), placing an eye of ender in an end portal frame, redstone torches burning out, food items on campfire.",
"options.particles.minecraft.sneeze": "Niesen",
"options.particles.minecraft.sneeze.tooltip": "Baby pandas sneezing.",
"options.particles.minecraft.snowflake": "Schneeflocke",
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 @@ -97,7 +97,7 @@
"options.particles.minecraft.fishing": "Fischen",
"options.particles.minecraft.fishing.tooltip": "Fischen.",
"options.particles.minecraft.flame": "Flamme",
"options.particles.minecraft.flame.tooltip": "Fackeln, Öfen, Magmawürfel, Mob-Spawner.",
"options.particles.minecraft.flame.tooltip": "Torches, furnaces, magma cubes, monster spawners.",
"options.particles.minecraft.flash": "Flash",
"options.particles.minecraft.flash.tooltip": "Flash light when firework rocket explodes.",
"options.particles.minecraft.glow": "Leuchten",
Expand Down Expand Up @@ -135,7 +135,7 @@
"options.particles.minecraft.note": "Note",
"options.particles.minecraft.note.tooltip": "Emitted from note blocks.",
"options.particles.minecraft.poof": "Poof",
"options.particles.minecraft.poof.tooltip": "Explosions, death of mobs, mobs spawned from a spawner, silverfish infesting blocks.",
"options.particles.minecraft.poof.tooltip": "Explosions, death of mobs, mobs spawned from a monster spawner, silverfish infesting blocks.",
"options.particles.minecraft.portal": "Portal",
"options.particles.minecraft.portal.tooltip": "Nether portals, enderman, endermites, ender pearls, eyes of ender, ender chests, dragon eggs, teleporting from eating chorus fruits, end gateway portals.",
"options.particles.minecraft.rain": "Regen",
Expand All @@ -155,7 +155,7 @@
"options.particles.minecraft.small_flame": "Small Flame",
"options.particles.minecraft.small_flame.tooltip": "Small Flame.",
"options.particles.minecraft.smoke": "Smoke",
"options.particles.minecraft.smoke.tooltip": "Torches, primed TNT, droppers, dispensers, end portals, brewing stands, spawners, furnaces, ghast fireballs, wither skulls, taming, withers, lava (when raining), placing an eye of ender in an end portal frame, redstone torches burning out, food items on campfire.",
"options.particles.minecraft.smoke.tooltip": "Torches, primed TNT, droppers, dispensers, end portals, brewing stands, monster spawners, furnaces, ghast fireballs, wither skulls, taming, withers, lava (when raining), placing an eye of ender in an end portal frame, redstone torches burning out, food items on campfire.",
"options.particles.minecraft.sneeze": "Niesen",
"options.particles.minecraft.sneeze.tooltip": "Baby pandas sneezing.",
"options.particles.minecraft.snowflake": "Schneeflocke",
Expand Down
Loading

0 comments on commit ff2133b

Please sign in to comment.