diff options
author | makamys <makamys@outlook.com> | 2023-05-16 23:07:04 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2023-05-16 23:39:39 +0200 |
commit | be922102e9fa6109ec93ba983d0f42010d380cec (patch) | |
tree | 28e19ae9e09a6a763365177ba64bc5007b478887 /src | |
parent | a2c230a4bf3659c99af90ecd5eeeab8e6d32c478 (diff) | |
download | Neodymium-be922102e9fa6109ec93ba983d0f42010d380cec.tar.gz Neodymium-be922102e9fa6109ec93ba983d0f42010d380cec.tar.bz2 Neodymium-be922102e9fa6109ec93ba983d0f42010d380cec.zip |
Move all reset commands to ClientConnectedToServerEvent
Fixes state not resetting when relogging to a server
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/makamys/neodymium/Neodymium.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/main/java/makamys/neodymium/Neodymium.java b/src/main/java/makamys/neodymium/Neodymium.java index 00e9846..4adab56 100644 --- a/src/main/java/makamys/neodymium/Neodymium.java +++ b/src/main/java/makamys/neodymium/Neodymium.java @@ -84,14 +84,6 @@ public class Neodymium } } - @EventHandler - public void onServerAboutToStart(FMLServerAboutToStartEvent event) - { - Config.reloadConfig(); - ChatUtil.resetShownChatMessages(); - Compat.reset(); - } - private void onPlayerWorldChanged(World newWorld) { if(getRendererWorld() == null && newWorld != null) { Config.reloadConfig(); @@ -125,6 +117,9 @@ public class Neodymium @SubscribeEvent @SideOnly(Side.CLIENT) public void onConnectToServer(ClientConnectedToServerEvent event) { + Config.reloadConfig(); + ChatUtil.resetShownChatMessages(); + Compat.reset(); WarningHelper.reset(); } |