Skip to content

Commit 7a157d8

Browse files
committed
Techguns compat
1 parent b1e85f3 commit 7a157d8

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ dependencies {
105105
compileOnly(deobfCurse("automagy-222153:2285272"))
106106
// NTM 1.0.27_X5027
107107
compileOnly(deobfCurse("hbm-ntm-235439:5534354"))
108+
// TechGuns 1.2
109+
compileOnly(deobfCurse("techguns-244201:2429662"))
108110

109111
compileOnly("codechicken:codechickencore-mc1.7.10:1.4.0-mega:dev")
110112
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package com.falsepattern.falsetweaks.mixin.mixins.client.threadedupdates.techguns;
2+
3+
import org.spongepowered.asm.mixin.Mixin;
4+
import org.spongepowered.asm.mixin.Overwrite;
5+
import techguns.client.renderer.block.RenderLadder;
6+
7+
import net.minecraft.block.Block;
8+
import net.minecraft.world.IBlockAccess;
9+
10+
@Mixin(value = RenderLadder.class,
11+
remap = false)
12+
public abstract class RenderLadderMixin {
13+
/**
14+
* @author FalsePattern
15+
* @reason This method is stupid
16+
*/
17+
@Overwrite
18+
private void adjustLightFixture(IBlockAccess world, int i, int j, int k, Block block) {
19+
}
20+
}

src/main/java/com/falsepattern/falsetweaks/mixin/plugin/standard/Mixin.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ public enum Mixin implements IMixin {
231231
ThreadedUpdates_Automagy_RenderBlockGlowOverlayMixin(Side.CLIENT,
232232
THREADING.and(require(TargetedMod.AUTOMAGY)),
233233
"threadedupdates.automagy.RenderBlockGlowOverlayMixin"),
234+
235+
// Techguns
236+
ThreadedUpdates_Techguns_RenderLadderMixin(Side.CLIENT,
237+
THREADING.and(require(TargetedMod.TECHGUNS)),
238+
"threadedupdates.techguns.RenderLadderMixin"),
234239
//endregion Threaded Chunk Updates
235240

236241
//region Texture Optimizations Module

src/main/java/com/falsepattern/falsetweaks/mixin/plugin/standard/TargetedMod.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public enum TargetedMod implements ITargetedMod {
5353
COMPUTRONICS("Computronics", false, contains("Computronics-")),
5454
EXTRA_CELLS("Extra Cells 2", false, contains("ExtraCells-")),
5555
AUTOMAGY("Automagy", false, contains("Automagy-")),
56+
TECHGUNS("Techguns", false, contains("techguns"))
5657
;
5758

5859
public static Predicate<List<ITargetedMod>> REQUIRE_OPTIFINE_WITHOUT_SHADERS = require(OPTIFINE_WITHOUT_SHADERS).or(require(OPTIFINE_WITH_DYNAMIC_LIGHTS));

0 commit comments

Comments
 (0)