generated from Fallen-Breath/fabric-mod-template
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a72d602
commit 6a8a0a5
Showing
7 changed files
with
84 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
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
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
56 changes: 56 additions & 0 deletions
56
...breath/tweakermore/mixins/tweaks/mc_tweaks/f3GSimplify/ChunkBorderDebugRendererMixin.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,56 @@ | ||
/* | ||
* This file is part of the TweakerMore project, licensed under the | ||
* GNU Lesser General Public License v3.0 | ||
* | ||
* Copyright (C) 2024 Fallen_Breath and contributors | ||
* | ||
* TweakerMore is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* TweakerMore is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with TweakerMore. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package me.fallenbreath.tweakermore.mixins.tweaks.mc_tweaks.f3GSimplify; | ||
|
||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue; | ||
import me.fallenbreath.tweakermore.config.TweakerMoreConfigs; | ||
import net.minecraft.client.render.debug.ChunkBorderDebugRenderer; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
|
||
@Mixin(ChunkBorderDebugRenderer.class) | ||
public abstract class ChunkBorderDebugRendererMixin | ||
{ | ||
@ModifyExpressionValue( | ||
method = "render", | ||
at = { | ||
@At(value = "CONSTANT", args = "intValue=16", ordinal = 0), | ||
@At(value = "CONSTANT", args = "intValue=16", ordinal = 1), | ||
//#if MC >= 11700 | ||
//$$ @At( | ||
//$$ value = "INVOKE", | ||
//$$ target = "Lnet/minecraft/client/world/ClientWorld;getTopY()I", | ||
//$$ ordinal = 1 | ||
//$$ ), | ||
//#else | ||
@At(value = "CONSTANT", args = "intValue=256", ordinal = 0), | ||
//#endif | ||
} | ||
) | ||
private int f3GSimplify_dontRenderYellowLine(int forLoopUpperLimit) | ||
{ | ||
if (TweakerMoreConfigs.F3_G_SIMPLIFY.getBooleanValue()) | ||
{ | ||
forLoopUpperLimit = -1; | ||
} | ||
return forLoopUpperLimit; | ||
} | ||
} |
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
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
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