extensions trigger for resource reload. Apps will reload upon reload

This commit is contained in:
gnembon committed 2020-06-05 23:23:47 -03:00
1 parent a8a22e1403
commit c5841408a6
5 files changed
+48 -4

No files matched your search

+6
View File
@@ -146,5 +146,11 @@ public class CarpetServer // static for now - easier to handle all around the co
TickSpeed.reset();
settingsManager.detachServer();
}
public static void onReload(MinecraftServer server)
{
scriptServer.reload(server);
extensions.forEach(e -> e.onReload(server));
}
}