-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix render distance being capped at 20 (#428)
* Fix render distance being capped at 20 in singleplayer * Clean up imports --------- Co-authored-by: George Paton <[email protected]>
- Loading branch information
1 parent
efe7c16
commit eb8a826
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/com/gtnewhorizons/angelica/mixins/early/sodium/MixinPlayerManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.gtnewhorizons.angelica.mixins.early.sodium; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.ModifyArgs; | ||
import org.spongepowered.asm.mixin.injection.invoke.arg.Args; | ||
|
||
import net.minecraft.server.management.PlayerManager; | ||
|
||
@Mixin(PlayerManager.class) | ||
public class MixinPlayerManager { | ||
|
||
@ModifyArgs(method = "func_152622_a(I)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/MathHelper;clamp_int(III)I")) | ||
public void clamp_int(Args args) { | ||
args.set(2, 32); | ||
} | ||
|
||
} |