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 {
// 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,11 +89,9 @@ 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.21.1
yarn_mappings=1.21.1+build.3
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.16.5
# Mod Properties
mod_version=1.0.1
mod_version=1.0.0
maven_group=ru.bitheaven
archives_base_name=donpayinteg
# Dependencies
# 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 NAME = "DonatePayIntegration";
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
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()) {
world.getCommandManager().executeWithPrefix(world.getCommandSource(), commands.getFirst());
commands.removeFirst();