Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
assorted updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tildejustin committed Feb 26, 2024
1 parent f9cd1ef commit a8597fb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 18 deletions.
8 changes: 1 addition & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
plugins {
id "fabric-loom" version "$loom_version"
id "legacy-looming" version "$legacy_looming_version"
id "io.github.juuxel.loom-vineflower" version "$loom_vineflower_version"
}

version = "$mod_version+$target_version"

base {
//noinspection GrDeprecatedAPIUsage
archivesBaseName = archives_base_name
archivesName = archives_base_name
}

repositories {
Expand Down Expand Up @@ -50,7 +48,3 @@ jar {
rename { "${it}_${base.archivesName.get()}" }
}
}

vineflower {
toolVersion = vineflower_version
}
10 changes: 4 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
org.gradle.jvmargs = -Xmx1G
org.gradle.parallel = true

loom_version = 1.3-SNAPSHOT
legacy_looming_version = 1.3-SNAPSHOT
loom_vineflower_version = 1.11.0
loom_version = 1.5-SNAPSHOT
legacy_looming_version = 1.5-SNAPSHOT

minecraft_version = 1.12
yarn_build = 526
loader_version = 0.14.22
vineflower_version = 1.9.2
yarn_build = 536
loader_version = 0.15.7

mod_version = 1.0.0
target_version = 1.12
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase = GRADLE_USER_HOME
distributionPath = wrapper/dists
distributionUrl = https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionUrl = https\://services.gradle.org/distributions/gradle-8.6-all.zip
networkTimeout = 10000
validateDistributionUrl = true
zipStoreBase = GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@

import net.minecraft.client.network.AbstractClientPlayerEntity;
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.*;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(AbstractClientPlayerEntity.class)
public abstract class AbstractClientPlayerEntityMixin {
@Inject(method = "getFovMultiplier", at = @At(value = "HEAD"), cancellable = true)
@Inject(method = "getFovMultiplier", at = @At("HEAD"), cancellable = true)
public void onGetSpeed(CallbackInfoReturnable<Float> cir) {
cir.setReturnValue(1.0f);
cir.setReturnValue(1f);
}

// @Redirect(method = "getFovMultiplier", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/attribute/EntityAttributeInstance;getValue()D"))
// public double onGetSpeed(EntityAttributeInstance instance) {
// return instance.getBaseValue();
// }
}

0 comments on commit a8597fb

Please sign in to comment.