From f1d0db0bf5f50b7e0ffb62e9e23307e9689a5183 Mon Sep 17 00:00:00 2001 From: MrSnowy Date: Thu, 26 Jun 2025 17:58:30 +0200 Subject: [PATCH] [1.21.5] V1.3.2 Smoll update --- CHANGELOG.md | 5 +++++ README.md | 1 + .../java/dev/mrsnowy/teleport_commands/TeleportCommands.java | 3 ++- .../teleport_commands/storage/DeathLocationStorage.java | 4 ++++ .../resources/assets/teleport_commands/lang/translations.md | 3 ++- gradle.properties | 2 -- 6 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e19108a..4249be0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +### [1.3.2] +- Added Traditional Chinese (Hong Kong) translations. (Thanks to [hugoalh](https://github.com/hugoalh)) +- Updated Traditional Chinese (Taiwan) and Simplified Chinese translations. (Thanks to [hugoalh](https://github.com/hugoalh)) +- Fixed a bug which caused `/back` locations to persist when in single player and joining a different world. + ### [1.3.1] - Updated Russian translations (Thanks to [rfin0](https://github.com/rfin0)!) - Changed the text color to red when running `/delhome` and the home isn't found. This is now consistent with `/delwarp` diff --git a/README.md b/README.md index 9e69b86..189f14a 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ Here is the [Changelog](https://github.com/MrSn0wy/TeleportCommands/blob/main/CH - [ ] Create a config to add any delays and disable commands, with commands for operators in game - [ ] Add a perm system - [ ] Optimize the translation strings (They are getting out of hand) +- [ ] Potentially setup a better translation system (Maybe I will self-host texterify) - [x] Find a way to combine the mod loader specific jars into one - [x] Json Storage automatic updater & cleaner - [x] Modify /back to check if the location is safe and automatically choose a nearby location that is safe diff --git a/common/src/main/java/dev/mrsnowy/teleport_commands/TeleportCommands.java b/common/src/main/java/dev/mrsnowy/teleport_commands/TeleportCommands.java index 7c91078..f815a5b 100644 --- a/common/src/main/java/dev/mrsnowy/teleport_commands/TeleportCommands.java +++ b/common/src/main/java/dev/mrsnowy/teleport_commands/TeleportCommands.java @@ -34,7 +34,8 @@ public class TeleportCommands { CONFIG_DIR = Paths.get(System.getProperty("user.dir")).resolve("config"); // Construct the game directory path SERVER = server; - StorageManager.STORAGE = storageValidator(); + StorageManager.STORAGE = storageValidator(); // Initialize the storage file + DeathLocationStorage.clearDeathLocations(); // Clear data of death locations. // initialize commands, also allows me to easily disable any when there is a config Commands commandManager = server.getCommands(); diff --git a/common/src/main/java/dev/mrsnowy/teleport_commands/storage/DeathLocationStorage.java b/common/src/main/java/dev/mrsnowy/teleport_commands/storage/DeathLocationStorage.java index 5c79631..fa44848 100644 --- a/common/src/main/java/dev/mrsnowy/teleport_commands/storage/DeathLocationStorage.java +++ b/common/src/main/java/dev/mrsnowy/teleport_commands/storage/DeathLocationStorage.java @@ -33,4 +33,8 @@ public class DeathLocationStorage { deathLocation.setWorld(world); } } + + public static void clearDeathLocations() { + deathLocations.clear(); + } } \ No newline at end of file diff --git a/common/src/main/resources/assets/teleport_commands/lang/translations.md b/common/src/main/resources/assets/teleport_commands/lang/translations.md index 210ef56..ed08145 100644 --- a/common/src/main/resources/assets/teleport_commands/lang/translations.md +++ b/common/src/main/resources/assets/teleport_commands/lang/translations.md @@ -26,6 +26,7 @@ Things to know: - Hungarian (hu_hu): [Martin Morningstar](https://github.com/RMI637) - Italian (it_it): [Vlad Andrei Morariu](https://github.com/VladAndreiMorariu) - Russian (ru_ru): [rfin0](https://github.com/rfin0) -- Traditional Chinese (zw_tw): [hugoalh](https://github.com/hugoalh), [Dicecan](https://github.com/Dicecan) +- Traditional Chinese - Taiwan (zw_tw): [hugoalh](https://github.com/hugoalh), [Dicecan](https://github.com/Dicecan) +- Traditional Chinese - Hong Kong (zh_hk): [Dicecan](https://github.com/Dicecan) - Simplified Chinese (zh_cn): [Dicecan](https://github.com/Dicecan) - Bulgarian (bg_bg): Anonymous \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 4d8840b..19f29b1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -36,8 +36,6 @@ fabric_loom=1.10-SNAPSHOT # see https://projects.neoforged.net/neoforged/neoforge for new versions neoforge_version=21.5.65-beta neoforge_loader_version_range=[4,) -# see https://projects.neoforged.net/neoforged/neogradle for new versions -#NeoGradle=7.0.184 # see https://projects.neoforged.net/neoforged/moddevgradle for new versions neoforge_moddevgradle=2.0.87 -- 2.51.2