3 Commits

Author SHA1 Message Date
f33ec41d0d Worked patch on 1.20.1 2024-09-29 13:48:50 +05:00
74fd36eea9 Fix 2024-09-29 12:34:32 +05:00
5655fcbd6b .gitignore is now working 2024-09-26 22:50:10 +05:00
3 changed files with 9 additions and 9 deletions

View File

@ -42,8 +42,8 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.3'
includedJars group: 'org.yaml', name: 'snakeyaml', version: '2.3'
implementation group: 'org.yaml', name: 'snakeyaml', version: '2.0'
includedJars group: 'org.yaml', name: 'snakeyaml', version: '2.0'
implementation group: 'org.json', name: 'json', version: '20240303'
includedJars group: 'org.json', name: 'json', version: '20240303'
}
@ -61,7 +61,7 @@ processResources {
}
}
def targetJavaVersion = 21
def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
@ -85,10 +85,10 @@ java {
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.includedJars.collect {
it.isDirectory() ? it : zipTree(it)

View File

@ -2,8 +2,8 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.16.5
# Mod Properties
mod_version=1.0.1
@ -11,4 +11,4 @@ maven_group=ru.bitheaven
archives_base_name=donpayinteg
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.77.0+1.19.2
fabric_version=0.92.2+1.20.1

View File

@ -4,9 +4,9 @@ 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;
import net.minecraft.text.Text;
import ru.bitheaven.donpayinteg.config.Config;
import ru.bitheaven.donpayinteg.config.ConfigHandler;
import net.minecraft.text.Text;
public class DPI {
public DPI() {
@ -25,7 +25,7 @@ public class DPI {
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;
})))