mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-07 02:26:43 +01:00
Revert final's added by 15e2f3ca34 (#2144)
* Revert final's added by 15e2f3ca34
* Apply suggestions from code review
Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
---------
Co-authored-by: Magix <27646710+KingRainbow44@users.noreply.github.com>
This commit is contained in:
@@ -36,10 +36,10 @@ public class ScriptLoader {
|
||||
@Getter private static ScriptLib scriptLib;
|
||||
@Getter private static LuaValue scriptLibLua;
|
||||
/** suggest GC to remove it if the memory is less */
|
||||
private static final Map<String, SoftReference<CompiledScript>> scriptsCache =
|
||||
private static Map<String, SoftReference<CompiledScript>> scriptsCache =
|
||||
new ConcurrentHashMap<>();
|
||||
/** sceneId - SceneMeta */
|
||||
private static final Map<Integer, SoftReference<SceneMeta>> sceneMetaCache =
|
||||
private static Map<Integer, SoftReference<SceneMeta>> sceneMetaCache =
|
||||
new ConcurrentHashMap<>();
|
||||
|
||||
public static synchronized void init() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user