Skip to content

Commit

Permalink
fix: auto reducing fractions
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenlige committed Nov 28, 2024
1 parent 3e9e22f commit acfb447
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,8 @@ org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop

# 1.21.3
minecraft_version=1.21.3
yarn_mappings=1.21.3+build.2

# 1.21.1
#minecraft_version=1.21.1
#yarn_mappings=1.21.1+build.3

# shared
loader_version=0.16.9

# Mod Properties
Expand All @@ -22,20 +14,10 @@ maven_group=com.github.zhenlige.xennote
archives_base_name=xennote

# Dependencies

# 1.21.3
fabric_version=0.107.0+1.21.3
cloth_version=16.0.141
modmenu_version=12.0.0-beta.1

# 1.21.1
#fabric_version=0.106.0+1.21.1
#cloth_version=15.0.140
#modmenu_version=11.0.3

# shared
conditional_mixin_version=0.6.3

#loom_libraries_base=https://bmclapi2.bangbang93.com/maven/
#loom_resources_base=https://bmclapi2.bangbang93.com/assets/
#loom_version_manifests=https://bmclapi2.bangbang93.com/mc/game/version_manifest.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static void blockConfig(BlockTuningPayload payload, ClientPlayNetworking
var entryRef = new EntryManager.SingleTuningRef(payload.tuningRef());
cat.addEntry(entryRef.createEntry(entryBuilder));
builder.setSavingRunnable(() -> {
Fraction f = Fraction.getFraction(entryP.getValue(), entryQ.getValue());
Fraction f = Fraction.getReducedFraction(entryP.getValue(), entryQ.getValue());
int p = pOf(f), q = qOf(f);
ClientPlayNetworking.send(new BlockTuningPayload(payload.pos(), p, q, entryRef.getTuningRef()));
});
Expand Down

0 comments on commit acfb447

Please sign in to comment.