3 Commits

Author SHA1 Message Date
4655fcf16f Worked patch on 1.20.1 2024-09-29 13:49:18 +05:00
b50e01f79f Update version 2024-09-29 12:33:27 +05:00
07445ebeff Fix little mistake 2024-09-29 12:30:48 +05:00
3 changed files with 11 additions and 9 deletions

View File

@ -61,7 +61,7 @@ processResources {
}
}
def targetJavaVersion = 17
def targetJavaVersion = 21
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
@ -89,9 +89,11 @@ jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
from configurations.includedJars.collect {
from {
configurations.includedJars.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
// configure the maven publication
publishing {

View File

@ -2,13 +2,13 @@
org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.5
# Mod Properties
mod_version=1.0.0
mod_version=1.0.1
maven_group=ru.bitheaven
archives_base_name=donpayinteg
# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.92.2+1.20.1
fabric_version=0.105.0+1.21.1

View File

@ -16,7 +16,7 @@ public class DonPayInteg implements ModInitializer {
public static final String MOD_ID = "donpayinteg";
public static final String NAME = "DonatePayIntegration";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
public static List<String> commands = new ArrayList<String>();
public static List<String> commands = new ArrayList<>();
@Override
public void onInitialize() {
@ -38,7 +38,7 @@ public class DonPayInteg implements ModInitializer {
}
}
if(i.getAndIncrement() % (20 * 2) == 0) {
if(j.getAndIncrement() % (20 * 2) == 0) {
if (!commands.isEmpty()) {
world.getCommandManager().executeWithPrefix(world.getCommandSource(), commands.getFirst());
commands.removeFirst();