mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-21 11:46:49 +01:00
fixed Chunks in sodium when classic is selected
This commit is contained in:
parent
a704ca6f22
commit
4e1b2abd84
@ -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
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user