From 83503307c82dd10201e73f080bd1ed5ae2f11854 Mon Sep 17 00:00:00 2001 From: szymon Date: Sat, 25 Jan 2020 11:17:16 +0100 Subject: [PATCH] Small fabric.mod.json and other update --- gradle.properties | 6 +++--- .../net/szum123321/textile_backup/core/BackupHelper.java | 5 ++--- src/main/resources/fabric.mod.json | 8 ++++---- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/gradle.properties b/gradle.properties index bfa5ccb..fbe82e7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,11 +4,11 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/use minecraft_version=1.15.2 - yarn_mappings=1.15.2+build.1 - loader_version=0.7.5+build.178 + yarn_mappings=1.15.2+build.7 + loader_version=0.7.6+build.179 # Mod Properties - mod_version = 1.0.0 + mod_version = 1.0.0-1.15.2 maven_group = net.szum123321 archives_base_name = textile_backup diff --git a/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java b/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java index 54a3ffb..8dc1878 100644 --- a/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java +++ b/src/main/java/net/szum123321/textile_backup/core/BackupHelper.java @@ -1,6 +1,5 @@ package net.szum123321.textile_backup.core; -import jdk.internal.jline.internal.Nullable; import net.fabricmc.loader.api.FabricLoader; import net.minecraft.server.MinecraftServer; import net.minecraft.server.command.ServerCommandSource; @@ -23,7 +22,7 @@ public class BackupHelper { .toFile(); } - public static void log(String s, @Nullable ServerCommandSource ctx){ + public static void log(String s, ServerCommandSource ctx){ if(ctx != null) ctx.sendFeedback(new TranslatableText(s), true); @@ -31,7 +30,7 @@ public class BackupHelper { TextileBackup.logger.info(s); } - public static void error(String s, @Nullable ServerCommandSource ctx){ + public static void error(String s, ServerCommandSource ctx){ if(ctx != null) ctx.sendFeedback(new TranslatableText(s), true); diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index f4755c6..fd12897 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -4,13 +4,13 @@ "version": "${version}", "name": "Textile Backup", - "description": "This is an example description! Tell everyone what your mod is about!", + "description": "Small, configurable, fully server-side backup mod for Fabric", "authors": [ "Szum123321" ], "contact": { - "homepage": "https://fabricmc.net/", - "sources": "https://github.com/FabricMC/fabric-example-mod" + "homepage": "https://www.curseforge.com/minecraft/mc-mods/textile-backup", + "sources": "https://github.com/Szum123321/textile_backup" }, "license": "GPLv3", @@ -29,6 +29,6 @@ "depends": { "fabricloader": ">=0.7.2", "fabric": "*", - "minecraft": "1.15.x" + "minecraft": "1.15.2" } }