Update to 1.21.11
Some checks are pending
build / build (21) (push) Waiting to run

This commit is contained in:
2026-03-09 09:08:41 +05:00
parent 629eab8032
commit 1eb7dca8e4
6 changed files with 18 additions and 23 deletions

View File

@@ -72,7 +72,7 @@ tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}
tasks.withType(Jar) {
tasks.withType(Jar).configureEach {
exclude('META-INF/maven/**')
}

View File

@@ -1,12 +1,12 @@
# The latest versions are available at https://quiltmc.org/en/usage/latest-versions
[versions]
minecraft = "1.21.4"
yarn_mappings="1.21.4+build.8"
minecraft = "1.21.11"
yarn_mappings="1.21.11+build.4"
fabric_loom = "1.9-SNAPSHOT"
fabric_loom = "1.15-SNAPSHOT"
# check these on https://modmuss50.me/fabric.html
fabric_loader = "0.16.10"
fabric_version = "0.115.0+1.21.4"
fabric_loader = "0.18.4"
fabric_version = "0.141.3+1.21.11"
compression = "1.+"

View File

@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

View File

@@ -40,7 +40,7 @@ public class DonPayInteg implements ModInitializer {
if(j.getAndIncrement() % (20 * ConfigHandler.load().getCmdCooldown()) == 0) {
if (!commands.isEmpty()) {
world.getCommandManager().executeWithPrefix(world.getCommandSource(), commands.getFirst());
world.getCommandManager().parseAndExecute(world.getCommandSource(), commands.getFirst());
commands.removeFirst();
}
}

View File

@@ -1,6 +1,5 @@
package ru.bitheaven.donpayinteg.command;
import com.mojang.brigadier.arguments.IntegerArgumentType;
import com.mojang.brigadier.arguments.StringArgumentType;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.minecraft.server.command.CommandManager;
@@ -14,22 +13,19 @@ public class DPI {
}
public static void register() {
CommandRegistrationCallback.EVENT.register((((dispatcher, registryAccess, environment) ->
{
dispatcher.register(CommandManager.literal("dpi")
.then(CommandManager.literal("set_token")
.then(CommandManager.argument("token", StringArgumentType.string())
.executes(context -> {
String token = StringArgumentType.getString(context, "token");
.then(CommandManager.literal("set_token")
.then(CommandManager.argument("token", StringArgumentType.string())
.executes(context -> {
String token = StringArgumentType.getString(context, "token");
Config config = ConfigHandler.load();
config.setDonpayToken(token);
ConfigHandler.save(config);
Config config = ConfigHandler.load();
config.setDonpayToken(token);
ConfigHandler.save(config);
context.getSource().sendFeedback(() -> Text.literal("DonatePay token set!"), false);
context.getSource().sendFeedback(() -> Text.literal("DonatePay token set!"), false);
return 1;
})))
);
})));
return 1;
})))))));
}
}

View File

@@ -6,7 +6,6 @@ import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.Constructor;
import org.yaml.snakeyaml.inspector.TagInspector;
import ru.bitheaven.donpayinteg.DonPayInteg;
import java.io.*;