Skip to content

Commit

Permalink
enchancement changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Nov 12, 2024
1 parent 0efa55a commit 2864e14
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ dependencies {
isChanging = true
isTransitive = false
}

modCompileOnly("maven.modrinth:enchancement:1.20-26")
}

tasks.processResources {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package dev.ithundxr.railwaystweaks.mixin.compat.enchancement;

import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import moriyashiine.enchancement.common.component.entity.SlideComponent;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

@Mixin(SlideComponent.class)
public class SlideComponentMixin {
@ModifyExpressionValue(method = "<clinit>", at = @At(value = "CONSTANT", args = "doubleValue=1"))
private static double railwayTweaks$modifySlideAttribute(double original) {
return 0;
}
}
1 change: 1 addition & 0 deletions src/main/resources/railwaystweaks.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"compat.create.Carriage$DimensionalCarriageEntityMixin",
"compat.create.CarriageAccessor",
"compat.dcintegration.DiscordEventListenerMixin",
"compat.enchancement.SlideComponentMixin",
"compat.tconstruct.SimpleChannelAccessor"
],
"client": [
Expand Down

0 comments on commit 2864e14

Please sign in to comment.