Skip to content

Commit dadce39

Browse files
committed
26.1 further changes /build
1 parent 2a44bfd commit dadce39

5 files changed

Lines changed: 15 additions & 8 deletions

File tree

‎build.gradle.kts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ dependencies {
126126

127127
"SODIUM" setVar (
128128
modImpl("maven.modrinth:sodium:",
129-
26_01_00 to null,
129+
26_01_00 to ver("Amr4VcZo", null, null),
130130
1_21_05 to ver("fVbw1C7i", null, "dfyNHRhw"),
131131
1_21_04 to ver("c3YkZvne", null, "XgEfENfn"),
132132
1_21_03 to ver("rLBgU2jc", null, "M0CXIL7c"),
@@ -143,7 +143,7 @@ dependencies {
143143

144144
"IRIS" setVar (
145145
modImpl("maven.modrinth:iris:",
146-
26_01_00 to null,
146+
26_01_00 to ver("4cGUAiJ6", null, null),
147147
//1_21_11 to ver("TSXvi2yD", null, "t3ruzodq"), //"k9tHcfnb"), //todo why does this break
148148
1_21_06 to ver("l77DAK6U", null, "t3ruzodq"), //"xA5cxBvz"), // same here
149149
1_21_05 to ver("U6evbjd0", null, "t3ruzodq"), //"KAopiPos"),
@@ -169,7 +169,7 @@ dependencies {
169169

170170
if (platform.isFabric) {
171171
modImpl("maven.modrinth:modmenu:",
172-
26_01_00 to "lWZE38V3",
172+
26_01_00 to "XIDyVLo7",
173173
1_21_05 to "R7uVB42W",
174174
1_21_02 to "PcJvQYqu",
175175
1_21_00 to "9FL4cmP7",

‎root.gradle.kts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
// Any project using `gg.essential.multi-version` must have a parent with this root plugin applied.
77
// Advanced users may use multiple (potentially independent) multi-version trees in different sub-projects.
88
// This is currently equivalent to applying `com.replaymod.preprocess-root`.
9-
kotlin("jvm") version "2.0.0" apply false
9+
kotlin("jvm") version "2.3.0" apply false
1010
id("gg.essential.loom") version "1.15.48" apply false // https://repo.essential.gg/#/public/gg/essential/loom/gg.essential.loom.gradle.plugin
1111
id("gg.essential.multi-version.root")
1212
}

‎src/main/java/traben/entity_texture_features/features/texture_handlers/ETFDirectory.java‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,15 @@ public static ResourceLocation getDirectoryVersionOf(@Nullable ResourceLocation
4646

4747
@NotNull
4848
public static ETFDirectory getDirectoryOf(@NotNull ResourceLocation vanillaIdentifier) {
49-
Object2ReferenceOpenHashMap<@NotNull ResourceLocation, @NotNull ETFDirectory> cache = getCache();
50-
return cache.computeIfAbsent(vanillaIdentifier, ETFDirectory::findDirectoryOf);
49+
Object2ReferenceOpenHashMap<@NotNull ResourceLocation, ETFDirectory> cache = getCache();
50+
var value = cache.get(vanillaIdentifier);
51+
if (value == null) {
52+
value = findDirectoryOf(vanillaIdentifier);
53+
cache.put(vanillaIdentifier, value);
54+
}
55+
return value;
56+
// compute if absent can crash
57+
//return cache.computeIfAbsent(vanillaIdentifier, ETFDirectory::findDirectoryOf);
5158
}
5259

5360
@NotNull

‎src/main/java/traben/entity_texture_features/mixin/mixins/mods/iris/MixinFullyBufferedMultiBufferSource.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package traben.entity_texture_features.mixin.mixins.mods.iris;
2-
//#if !IRIS || MC == 12002 || MC < 12000
2+
//#if !IRIS || MC == 12002 || MC < 12000 || MC >= 26.1
33
//$$ import net.minecraft.client.Minecraft;
44
//$$ import org.spongepowered.asm.mixin.Mixin;
55
//$$ import org.spongepowered.asm.mixin.Pseudo;

‎src/main/java/traben/entity_texture_features/mixin/mixins/mods/iris/MixinInnerWrappedRenderType.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package traben.entity_texture_features.mixin.mixins.mods.iris;
2-
//#if !IRIS || MC == 12002 || MC < 12000
2+
//#if !IRIS || MC == 12002 || MC < 12000 || MC >= 26.1
33
//$$ import net.minecraft.client.Minecraft;
44
//$$ import org.spongepowered.asm.mixin.Mixin;
55
//$$ import org.spongepowered.asm.mixin.Pseudo;

0 commit comments

Comments
 (0)