mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-25 04:11:42 -04:00
use on_mod(Loaded) for a few more things
This commit is contained in:
parent
736a61e291
commit
a654f343a8
2 changed files with 2 additions and 2 deletions
loader
|
@ -62,7 +62,7 @@ namespace geode {
|
|||
struct GEODE_CONCAT(ProvideIDsFor, Layer_) : public Layer_ {\
|
||||
void provide();\
|
||||
};\
|
||||
$execute {\
|
||||
$on_mod(Loaded) {\
|
||||
NodeIDs::get()->registerProvider(\
|
||||
&geodeInternalProvideIDsFor<GEODE_CONCAT(ProvideIDsFor, Layer_)>\
|
||||
);\
|
||||
|
|
|
@ -842,7 +842,7 @@ void server::clearServerCaches(bool clearGlobalCaches) {
|
|||
}
|
||||
}
|
||||
|
||||
$execute {
|
||||
$on_mod(Loaded) {
|
||||
listenForSettingChanges<int64_t>("server-cache-size-limit", +[](int64_t size) {
|
||||
getCache<&server::getMods>().limit(size);
|
||||
getCache<&server::getMod>().limit(size);
|
||||
|
|
Loading…
Add table
Reference in a new issue