mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-07 00:42:57 +08:00
perf: remove redundant collection operation
This commit is contained in:
parent
8f8a6a7bfe
commit
85ca8777c9
@ -27,7 +27,7 @@ public class PacketPlayerWorldSceneInfoListNotify extends BasePacket {
|
|||||||
/* Add scene-specific data */
|
/* Add scene-specific data */
|
||||||
|
|
||||||
// Scenetags
|
// Scenetags
|
||||||
if (sceneTags.keySet().contains(scene)) {
|
if (sceneTags.containsKey(scene)) {
|
||||||
worldInfoBuilder.addAllSceneTagIdList(
|
worldInfoBuilder.addAllSceneTagIdList(
|
||||||
sceneTags.entrySet().stream()
|
sceneTags.entrySet().stream()
|
||||||
.filter(e -> e.getKey().equals(scene))
|
.filter(e -> e.getKey().equals(scene))
|
||||||
|
@ -61,13 +61,12 @@ public interface StartupArguments {
|
|||||||
// Aliases.
|
// Aliases.
|
||||||
"-v",
|
"-v",
|
||||||
StartupArguments::printVersion));
|
StartupArguments::printVersion));
|
||||||
putAll(
|
put(
|
||||||
Map.of(
|
"-debugall",
|
||||||
"-debugall",
|
parameter -> {
|
||||||
parameter -> {
|
StartupArguments.enableDebug("all");
|
||||||
StartupArguments.enableDebug("all");
|
return false;
|
||||||
return false;
|
});
|
||||||
}));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user