aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2023-05-16 23:07:04 +0200
committermakamys <makamys@outlook.com>2023-05-16 23:39:39 +0200
commitbe922102e9fa6109ec93ba983d0f42010d380cec (patch)
tree28e19ae9e09a6a763365177ba64bc5007b478887
parenta2c230a4bf3659c99af90ecd5eeeab8e6d32c478 (diff)
downloadNeodymium-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
-rw-r--r--src/main/java/makamys/neodymium/Neodymium.java11
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();
}