Skip to content

Commit

Permalink
Fix entity postion being clamped when reading
Browse files Browse the repository at this point in the history
Closes #18
  • Loading branch information
PercyDan54 committed Jul 27, 2024
1 parent bcb9718 commit 108a316
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
12 changes: 6 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ build_script:
- cmd: gradlew build
test: off
artifacts:
- path: .\build\libs\BorderRemover-1.0.7.jar
name: BorderRemover-1.0.7.jar
- path: .\build\devlibs\BorderRemover-1.0.7-sources.jar
name: BorderRemover-1.0.7-sources.jar
- path: .\build\libs\BorderRemover-1.0.8.jar
name: BorderRemover-1.0.8.jar
- path: .\build\devlibs\BorderRemover-1.0.8-sources.jar
name: BorderRemover-1.0.8-sources.jar
deploy:
- provider: GitHub
tag: 1.0.7
tag: 1.0.8
auth_token:
secure: EEbZ2OGaIPcjhGpQGzfE80TbrG14UiTPGNnQjMIKD5wzrYPQ4Kyhb3qLzMNahL1I
repository: PercyDan54/BorderRemover
artifact: BorderRemover-1.0.7.jar, BorderRemover-1.0.7-sources-dev.jar
artifact: BorderRemover-1.0.8.jar, BorderRemover-1.0.8-sources-dev.jar
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ org.gradle.daemon=false
# check these on https://fabricmc.net/use
minecraft_version=1.19.4
yarn_mappings=1.19.4+build.2
loader_version=0.15.3
loader_version=0.15.11

# Mod Properties
mod_version = 1.0.7
mod_version = 1.0.8
maven_group = me.percydan
archives_base_name = BorderRemover

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ public abstract class MixinEntity {
private double redirectClamp(double value, double min, double max) {
return value;
}

@Redirect(method = "readNbt", at = @At(target = "Lnet/minecraft/util/math/MathHelper;clamp(DDD)D", value = "INVOKE"))
private double redirectClampReadNbt(double value, double min, double max) {
return value;
}
}

0 comments on commit 108a316

Please sign in to comment.