Skip to content

Commit d6fd004

Browse files
committed
update repo
1 parent a3dca81 commit d6fd004

File tree

78 files changed

+138
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+138
-128
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
6-
ko_fi: wurgo
6+
ko_fi: quesia
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
99
liberapay: # Replace with a single Liberapay username

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Advancementroll
22

3-
Check out [the document](https://docs.google.com/document/d/1Dm5KMR1KKV4ajmrvrwG__Wjf5Zyu9H29LPuMhjjLzIY/edit) for all the features and download.
3+
There is a config file (`.minecraft/config/advancementroll.json`) where you can disable certain settings to make it easier.
44

5-
### Made by Maya & Quid 🥰
5+
Check out [the document](https://docs.google.com/document/d/1Dm5KMR1KKV4ajmrvrwG__Wjf5Zyu9H29LPuMhjjLzIY/edit) for all the features.
6+
7+
### Made by falu & Quidvio 🥰

build.gradle

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
2-
id 'fabric-loom' version '0.12-SNAPSHOT'
3-
id 'maven-publish'
2+
id "fabric-loom" version "1.3-SNAPSHOT"
3+
id "maven-publish"
44
}
55

66
sourceCompatibility = JavaVersion.VERSION_1_9
@@ -10,14 +10,6 @@ archivesBaseName = project.archives_base_name
1010
version = "${project.mod_version}+${project.minecraft_version}"
1111
group = project.maven_group
1212

13-
repositories {
14-
// Add repositories to retrieve artifacts from in here.
15-
// You should only use this when depending on other mods because
16-
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
17-
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
18-
// for more information about repositories.
19-
}
20-
2113
loom {
2214
accessWidenerPath = file("src/main/resources/advancementroll.accesswidener")
2315
}

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ org.gradle.jvmargs=-Xmx2G
55
# check these on https://fabricmc.net/develop
66
minecraft_version=1.16.1
77
yarn_mappings=1.16.1+build.21
8-
loader_version=0.12.12
8+
loader_version=0.14.23
99
fabric_version=0.42.0+1.16
1010

1111
# Mod Properties
12-
mod_version=1.4.0
13-
maven_group=me.wurgo
12+
mod_version=1.5
13+
maven_group=me.falu
1414
archives_base_name=advancementroll

gradle/wrapper/gradle-wrapper.jar

2.48 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

Lines changed: 23 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/me/wurgo/advancementroll/Advancementroll.java renamed to src/main/java/me/falu/advancementroll/Advancementroll.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
package me.wurgo.advancementroll;
1+
package me.falu.advancementroll;
22

33
import com.google.gson.GsonBuilder;
4-
import net.fabricmc.api.ClientModInitializer;
4+
import net.fabricmc.api.ModInitializer;
55

66
import java.io.FileWriter;
77
import java.io.IOException;
88

9-
public class Advancementroll implements ClientModInitializer {
9+
public class Advancementroll implements ModInitializer {
1010
public static int screenSeed = 0;
1111

1212
@Override
13-
public void onInitializeClient() {
13+
public void onInitialize() {
1414
try {
15-
FileWriter writer = new FileWriter(MixinPlugin.configFile);
15+
FileWriter writer = new FileWriter(MixinPlugin.CONFIG_FILE);
1616

17-
writer.write(new GsonBuilder().setPrettyPrinting().create().toJson(MixinPlugin.config));
17+
writer.write(new GsonBuilder().setPrettyPrinting().create().toJson(MixinPlugin.CONFIG));
1818
writer.flush();
1919
writer.close();
2020

21-
MixinPlugin.config = null;
21+
MixinPlugin.CONFIG = null;
2222
} catch (IOException ignored) {}
2323
}
2424
}

src/main/java/me/wurgo/advancementroll/MixinPlugin.java renamed to src/main/java/me/falu/advancementroll/MixinPlugin.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.wurgo.advancementroll;
1+
package me.falu.advancementroll;
22

33
import com.google.gson.JsonNull;
44
import com.google.gson.JsonObject;
@@ -15,31 +15,31 @@
1515
import java.util.Set;
1616

1717
public class MixinPlugin implements IMixinConfigPlugin {
18-
public static final File configFile = FabricLoader.getInstance().getConfigDir().resolve("advancementroll.json").toFile();
19-
public static JsonObject config;
18+
public static final File CONFIG_FILE = FabricLoader.getInstance().getConfigDir().resolve("advancementroll.json").toFile();
19+
public static JsonObject CONFIG;
2020

2121
private static void getConfig() {
22-
if (config != null) { return; }
22+
if (CONFIG != null) { return; }
2323

2424
try {
25-
FileReader reader = new FileReader(configFile);
25+
FileReader reader = new FileReader(CONFIG_FILE);
2626
JsonParser parser = new JsonParser();
2727

2828
Object obj = parser.parse(reader);
29-
config = obj.equals(JsonNull.INSTANCE) ? new JsonObject() : (JsonObject) obj;
29+
CONFIG = obj.equals(JsonNull.INSTANCE) ? new JsonObject() : (JsonObject) obj;
3030

3131
reader.close();
3232
} catch (IOException ignored) {
33-
config = new JsonObject();
33+
CONFIG = new JsonObject();
3434
}
3535
}
3636

3737
private static boolean getConfigValue(String feature) {
38-
if (config.has(feature)) {
39-
return config.get(feature).getAsBoolean();
38+
if (CONFIG.has(feature)) {
39+
return CONFIG.get(feature).getAsBoolean();
4040
}
4141

42-
config.addProperty(feature, true);
42+
CONFIG.addProperty(feature, true);
4343
return true;
4444
}
4545

@@ -55,7 +55,7 @@ public String getRefMapperConfig() {
5555
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
5656
getConfig();
5757

58-
if (mixinClassName.startsWith("me.wurgo.advancementroll.mixin.features")) {
58+
if (mixinClassName.startsWith("me.falu.advancementroll.mixin.features")) {
5959
String[] packageNames = mixinClassName.split("\\.");
6060
if (packageNames.length > 5) {
6161
String featureName = packageNames[5];

0 commit comments

Comments
 (0)