mirror of
https://github.com/Anime-Game-Servers/Grasscutter-Quests.git
synced 2024-11-23 04:29:42 +00:00
[Refactoring] shortened getCachedGadgetState
This commit is contained in:
parent
70eb3f9d48
commit
a66fa7d5ed
@ -80,8 +80,7 @@ public class SceneGroupInstance implements SceneGroupUserData {
|
||||
}
|
||||
|
||||
public int getCachedGadgetState(SceneGadget g) {
|
||||
Integer state = cachedGadgetStates.getOrDefault(g.getConfigId(), null);
|
||||
return (state == null) ? g.getState() : state;
|
||||
return cachedGadgetStates.getOrDefault(g.getConfigId(), g.getState());
|
||||
}
|
||||
|
||||
public void save() {
|
||||
|
Loading…
Reference in New Issue
Block a user