Skip to content

Commit

Permalink
new: uncap render distance in VulkanMod
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Oct 15, 2024
1 parent 83cc6bb commit 9bf0035
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.ishland.c2me.client.uncapvd.mixin;

import com.ishland.c2me.client.uncapvd.common.Config;
import org.spongepowered.asm.mixin.Dynamic;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Pseudo;
import org.spongepowered.asm.mixin.injection.Constant;
import org.spongepowered.asm.mixin.injection.ModifyConstant;

@Pseudo
@Mixin(targets = "net.vulkanmod.config.option.Options")
public class MixinVKModOptions {

@Dynamic
@ModifyConstant(method = "getGraphicsOpts", constant = @Constant(intValue = 32, ordinal = 0), remap = false, require = 0)
private static int modifyMaxViewDistance(int value) {
return Config.maxViewDistance;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"ISimpleOption",
"MixinGameOptions",
"MixinSodiumUserConfigCategories",
"MixinSyncedClientOptions"
"MixinSyncedClientOptions",
"MixinVKModOptions"
]
}

0 comments on commit 9bf0035

Please sign in to comment.