Skip to content

Commit 4c21a8c

Browse files
Fix Sodium Compatibility
Fix ModelLoaderMixin Bump Version
1 parent bec0565 commit 4c21a8c

File tree

9 files changed

+27
-27
lines changed

9 files changed

+27
-27
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import com.mmodding.gradle.api.EnvironmentTarget
22

33
plugins {
4-
id 'fabric-loom' version '1.6-SNAPSHOT'
5-
id 'com.mmodding.gradle' version '0.0.8'
4+
id 'fabric-loom' version '1.7-SNAPSHOT'
5+
id 'com.mmodding.gradle' version '0.0.9'
66
id 'maven-publish'
77
}
88

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ yarn_mappings=1.21+build.2
99
loader_version=0.15.11
1010

1111
# Mod Properties
12-
mod_version=0.0.7-alpha
12+
mod_version=0.0.8-alpha
1313
maven_group=com.mmodding.env.driven.assets
1414
archives_base_name=env_driven_assets
1515

1616
# Dependencies
1717
fabric_version=0.100.1+1.21
18-
env_json_version=0.4.2
18+
env_json_version=0.4.3
1919

2020
# Compatibilities
21-
sodium_version=mc1.21-0.5.9
21+
sodium_version=mc1.21-0.6.0-beta.1-fabric
2222
axiom_version=3.0.0

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pluginManagement {
1616
url "https://maven.quiltmc.org/repository/release"
1717
}
1818
maven {
19-
name "Fabric"
19+
name "FabricMC"
2020
url "https://maven.fabricmc.net/"
2121
}
2222
mavenCentral()

src/main/java/com/mmodding/env/driven/assets/client/EDAEnvJsonVisitors.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import com.mmodding.env.driven.assets.client.impl.sodium.SodiumBlockEnvJsonVisitor;
1212
import com.mmodding.env.driven.assets.mixin.client.ChunkRendererRegionAccessor;
1313
import com.mmodding.env.json.api.EnvJsonVisitor;
14-
import me.jellysquid.mods.sodium.client.world.WorldSlice;
14+
import net.caffeinemc.mods.sodium.client.world.LevelSlice;
1515
import net.fabricmc.loader.api.FabricLoader;
1616
import net.minecraft.client.MinecraftClient;
1717
import net.minecraft.client.render.chunk.ChunkRendererRegion;
@@ -30,7 +30,7 @@ else if (view instanceof World world) {
3030
return new BlockEnvJsonVisitor(world, pos);
3131
}
3232
else if (FabricLoader.getInstance().isModLoaded("sodium")) {
33-
if (view instanceof WorldSlice slice) {
33+
if (view instanceof LevelSlice slice) {
3434
return new SodiumBlockEnvJsonVisitor(slice, pos);
3535
}
3636
}

src/main/java/com/mmodding/env/driven/assets/client/impl/sodium/SodiumBlockEnvJsonVisitor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import com.mmodding.env.json.api.rule.VoidEnvJsonRule;
99
import com.mmodding.env.json.api.rule.WaterEnvJsonRule;
1010
import it.unimi.dsi.fastutil.ints.Int2BooleanFunction;
11-
import me.jellysquid.mods.sodium.client.world.WorldSlice;
11+
import net.caffeinemc.mods.sodium.client.world.LevelSlice;
1212
import net.minecraft.registry.RegistryKey;
1313
import net.minecraft.registry.tag.TagKey;
1414
import net.minecraft.util.math.BlockPos;
@@ -21,10 +21,10 @@
2121
@SuppressWarnings("resource")
2222
public class SodiumBlockEnvJsonVisitor implements EnvJsonVisitor {
2323

24-
private final WorldSlice slice;
24+
private final LevelSlice slice;
2525
private final BlockPos pos;
2626

27-
public SodiumBlockEnvJsonVisitor(WorldSlice slice, BlockPos pos) {
27+
public SodiumBlockEnvJsonVisitor(LevelSlice slice, BlockPos pos) {
2828
this.slice = slice;
2929
this.pos = pos;
3030
}

src/main/java/com/mmodding/env/driven/assets/mixin/client/ModelLoaderMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ public abstract class ModelLoaderMixin implements ManagerContainer {
3838

3939
@Inject(method = "<init>", at = @At("TAIL"))
4040
private void computeStatesIntoManager(BlockColors blockColors, Profiler profiler, Map<Identifier, JsonUnbakedModel> jsonUnbakedModels, Map<Identifier, List<BlockStatesLoader.SourceTrackedData>> blockStates, CallbackInfo ci) {
41-
Registries.BLOCK.streamEntries().forEach(ref -> {
41+
/* Registries.BLOCK.streamEntries().forEach(ref -> {
4242
Identifier stateId = BlockStatesLoader.FINDER.toResourcePath(ref.registryKey().getValue());
4343
blockStates.get(stateId).forEach(source -> {
4444
JsonObjectDuckInterface ducked = (JsonObjectDuckInterface) source.data();
4545
if (ducked.env_driven_assets$getEnvJson() != null) {
4646
this.blockStateManager.appendBlock(ref.value(), ducked.env_driven_assets$getEnvJson());
4747
}
4848
});
49-
});
49+
}); */
5050
}
5151

5252
@Override
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package com.mmodding.env.driven.assets.mixin.client;
22

3-
import me.jellysquid.mods.sodium.client.world.WorldSlice;
3+
import net.caffeinemc.mods.sodium.client.world.LevelSlice;
44
import net.minecraft.client.world.ClientWorld;
55
import org.spongepowered.asm.mixin.Mixin;
66
import org.spongepowered.asm.mixin.gen.Accessor;
77

8-
@Mixin(WorldSlice.class)
8+
@Mixin(LevelSlice.class)
99
public interface WorldSliceAccessor {
1010

11-
@Accessor("world")
11+
@Accessor("level")
1212
ClientWorld env_driven_assets$getWorld();
1313
}

0 commit comments

Comments
 (0)