nuclearsilo583 / zephyrus-store-preview-new-syntax

My rewritten zephyrus store
61 stars 40 forks source link

Fixed a crash related to model precaching #93

Closed azalty closed 2 years ago

azalty commented 2 years ago

(Also added the repo url)

Precaching should be done on map start, but this config function is called after a database query, which could end AFTER OnMapStart, resulting in models not being precached.

This fixes the issue I got on my server of grenade skins not being precached on the first map after server launch, and ensures the plugin won't crash the server if it is loaded late.

Did not add my author name since the fix was very basic.

✅ Compiles fine ❌ Not tested in game

nuclearsilo583 commented 2 years ago

thanks