mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-04 23:32:55 +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 */
|
||||
|
||||
// Scenetags
|
||||
if (sceneTags.keySet().contains(scene)) {
|
||||
if (sceneTags.containsKey(scene)) {
|
||||
worldInfoBuilder.addAllSceneTagIdList(
|
||||
sceneTags.entrySet().stream()
|
||||
.filter(e -> e.getKey().equals(scene))
|
||||
|
@ -61,13 +61,12 @@ public interface StartupArguments {
|
||||
// Aliases.
|
||||
"-v",
|
||||
StartupArguments::printVersion));
|
||||
putAll(
|
||||
Map.of(
|
||||
"-debugall",
|
||||
parameter -> {
|
||||
StartupArguments.enableDebug("all");
|
||||
return false;
|
||||
}));
|
||||
put(
|
||||
"-debugall",
|
||||
parameter -> {
|
||||
StartupArguments.enableDebug("all");
|
||||
return false;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user