Compare commits

...

3 commits

Author SHA1 Message Date
Oth3r
ce9a88d56d
v1.2.4.7 2025-07-19 20:54:26 -05:00
Oth3r
89536e3070
fix legacy file updater causing a stack overflow crash 2025-07-19 20:53:37 -05:00
Oth3r
1bb8409931
grammer fix 2025-07-19 20:53:00 -05:00
4 changed files with 10 additions and 4 deletions

View file

@ -52,7 +52,7 @@ With the new config system, block tags and custom blockstates can be used to mas
![players sitting on a vast range of blocks](https://github.com/Oth3r/oth3r.github.io/blob/main/mod_data/Sit!/media/desc/custom_blocks.gif?raw=true) ![players sitting on a vast range of blocks](https://github.com/Oth3r/oth3r.github.io/blob/main/mod_data/Sit!/media/desc/custom_blocks.gif?raw=true)
### ⌨️ Keybinds ### ⌨️ Keybinds
Don't want to sit with the **just** the hand? Use a keybind or type a command to sit instead! Don't want to sit with **just** the hand? Use a keybind or type a command to sit instead!
![setting keybinds for the sit mod, and sitting by using them](https://github.com/Oth3r/oth3r.github.io/blob/main/mod_data/Sit!/media/desc/keybinds.gif?raw=true) ![setting keybinds for the sit mod, and sitting by using them](https://github.com/Oth3r/oth3r.github.io/blob/main/mod_data/Sit!/media/desc/keybinds.gif?raw=true)

View file

@ -1,3 +1,6 @@
# v1.2.4.7
* fixed legacy file updater causing a stack overflow crash
# v1.2.4.6 # v1.2.4.6
* fixed max otterlib version (1.21.8) * fixed max otterlib version (1.21.8)

View file

@ -13,7 +13,7 @@ yarn_mappings=1.21.8+build.1
loader_version=0.16.14 loader_version=0.16.14
# Mod Properties # Mod Properties
mod_version=1.2.4.6+1.21.8 mod_version=1.2.4.7+1.21.8
maven_group=one.oth3r maven_group=one.oth3r
file_name=sit! file_name=sit!

View file

@ -345,6 +345,11 @@ public class ServerConfig implements CustomFile<ServerConfig> {
} catch (Exception e) { } catch (Exception e) {
Data.LOGGER.error("Failed to delete the old Sit! config."); Data.LOGGER.error("Failed to delete the old Sit! config.");
} }
// save the updated configs
FileData.saveFiles();
// continue loading as normal...
} }
/** /**
@ -494,8 +499,6 @@ public class ServerConfig implements CustomFile<ServerConfig> {
FileData.setServerConfig(serverConfig); FileData.setServerConfig(serverConfig);
FileData.setSittingConfig(sittingConfig); FileData.setSittingConfig(sittingConfig);
serverConfig.save();
sittingConfig.save();
} catch (Exception e) { } catch (Exception e) {
Data.LOGGER.error("Error loading legacy config: %s", e.getMessage()); Data.LOGGER.error("Error loading legacy config: %s", e.getMessage());
} }