fixed Chunks in sodium when classic is selected

This commit is contained in:
FlorianMichael 2023-02-24 21:51:37 +01:00
parent a704ca6f22
commit 4e1b2abd84
3 changed files with 19 additions and 1 deletions

View File

@ -5,7 +5,7 @@ minecraft_version=1.19.3
yarn_mappings=1.19.3+build.5
loader_version=0.14.14
mod_version=1.2.4
mod_version=1.2.5
maven_group=de.florianmichael
archives_base_name=viafabricplus

View File

@ -0,0 +1,17 @@
package de.florianmichael.viafabricplus.injection.mixin.sodium;
import it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Pseudo;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
@Pseudo
@Mixin(targets = "me.jellysquid.mods.sodium.client.render.chunk.ChunkTracker", remap = false)
public abstract class MixinChunkTracker {
@Redirect(method = "recalculateChunks", at = @At(value = "INVOKE", target = "Lit/unimi/dsi/fastutil/longs/Long2IntOpenHashMap;get(J)I"))
private int modifyRenderCondition(Long2IntOpenHashMap instance, long k) {
return instance.getOrDefault(k, -1);
}
}

View File

@ -92,6 +92,7 @@
"fixes.screen.screenhandler.MixinBrewingStandScreenHandler_FuelSlot",
"fixes.screen.screenhandler.MixinPlayerScreenHandler",
"fixes.screen.screenhandler.MixinScreenHandler",
"sodium.MixinChunkTracker",
"viaaprilfools.MixinProtocol1_16to20w14infinite",
"vialegacy.MixinProtocol1_8to1_7_6_10",
"vialoadingbase.MixinCustomViaConfig",