-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
103b295
commit daa13a2
Showing
5 changed files
with
42 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
repositories {} | ||
repositories { | ||
maven { | ||
name = "cursemaven" | ||
url = "https://cursemaven.falsepattern.com/" | ||
content { | ||
includeGroup "curse.maven" | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...pattern/triangulator/mixin/mixins/client/redstonepaste/RedstonePasteHighlighterMixin.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,25 @@ | ||
package com.falsepattern.triangulator.mixin.mixins.client.redstonepaste; | ||
|
||
import com.falsepattern.triangulator.api.ToggleableTessellator; | ||
import fyber.redstonepastemod.client.RedstonePasteHighlighter; | ||
import net.minecraft.client.renderer.Tessellator; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(value = RedstonePasteHighlighter.class, remap = false) | ||
public abstract class RedstonePasteHighlighterMixin { | ||
@Inject(method = "drawLineLoop", | ||
at = @At("HEAD"), | ||
require = 1) | ||
private void turnOffTriangulator(CallbackInfo ci) { | ||
((ToggleableTessellator) Tessellator.instance).disableTriangulator(); | ||
} | ||
@Inject(method = "drawLineLoop", | ||
at = @At("RETURN"), | ||
require = 1) | ||
private void turnOnTriangulator(CallbackInfo ci) { | ||
((ToggleableTessellator) Tessellator.instance).enableTriangulator(); | ||
} | ||
} |
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
daa13a2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolves #10