Skip to content

Commit

Permalink
Java Edition 1.20.4 (#63)
Browse files Browse the repository at this point in the history
* Update to Minecraft 1.20.4

* Fix double to raw conversion for legacy services
  • Loading branch information
nahkd123 authored Dec 7, 2024
1 parent 00eac8f commit 08be8f0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.8-SNAPSHOT'
id 'fabric-loom' version '1.9-SNAPSHOT'
id 'com.diffplug.eclipse.apt' version '3.42.2'
}

Expand Down
4 changes: 2 additions & 2 deletions fabric/src/main/java/stonks/fabric/economy/LegacyEconomy.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public LegacyEconomy(StonksFabricAdapter adapter, PlatformConfig config) {
public Identifier getEconomyId() { return Identifier.of(StonksFabric.MODID, "legacy_economy_adapter"); }

public long doubleToRaw(double value) {
return (long) (value * config.decimals);
return (long) (value / Math.pow(10, config.decimals));
}

public double rawToDouble(long raw) {
return raw / (double) config.decimals;
return raw / Math.pow(10, config.decimals);
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
},
"mixins": ["stonks.mixins.json"],
"depends": {
"fabricloader": ">=0.15.10",
"minecraft": ">=1.21",
"fabricloader": ">=0.16.9",
"minecraft": ">=1.21.4",
"java": ">=21",
"fabric-api": "*"
}
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ maven_group=me.nahkd
# Fabric Properties
# check these on https://fabricmc.net/develop
# Loader 0.15.0 includes MixinExtras, pretty based indeed
minecraft_version=1.21.2
yarn_mappings=1.21.2+build.1
loader_version=0.16.7
minecraft_version=1.21.4
yarn_mappings=1.21.4+build.1
loader_version=0.16.9

# Spigot Plugin Dependencies
# <Not available yet>

# Fabric Mod Dependencies
nahara_toolkit_version=b6ff2e287b
fabric_version=0.106.1+1.21.2
fabric_version=0.110.5+1.21.4
common_economy_version=1.1.1
sgui_version=1.7.1+1.21.2
sgui_version=1.8.1+1.21.4
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.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 08be8f0

Please sign in to comment.