1 Commits

Author SHA1 Message Date
5655fcbd6b .gitignore is now working 2024-09-26 22:50:10 +05:00
3 changed files with 9 additions and 11 deletions

View File

@ -61,7 +61,7 @@ processResources {
} }
} }
def targetJavaVersion = 21 def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is // 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 // this fixes some edge cases with special characters not displaying correctly
@ -89,12 +89,10 @@ jar {
from("LICENSE") { from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" } rename { "${it}_${project.archivesBaseName}" }
} }
from { from configurations.includedJars.collect {
configurations.includedJars.collect {
it.isDirectory() ? it : zipTree(it) it.isDirectory() ? it : zipTree(it)
} }
} }
}
// configure the maven publication // configure the maven publication
publishing { publishing {
publications { publications {

View File

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

View File

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