diff --git a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerWorldSceneInfoListNotify.java b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerWorldSceneInfoListNotify.java index dd7d0be1e..a61386691 100644 --- a/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerWorldSceneInfoListNotify.java +++ b/src/main/java/emu/grasscutter/server/packet/send/PacketPlayerWorldSceneInfoListNotify.java @@ -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)) diff --git a/src/main/java/emu/grasscutter/utils/StartupArguments.java b/src/main/java/emu/grasscutter/utils/StartupArguments.java index 1aae558bb..d538c729a 100644 --- a/src/main/java/emu/grasscutter/utils/StartupArguments.java +++ b/src/main/java/emu/grasscutter/utils/StartupArguments.java @@ -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; + }); } };