diff --git a/README.md b/README.md index 07e4dbeb8..560e73b9a 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ ## Quick setup guide -**Note:** For support please join our [Discord](https://discord.gg/T5vZU6UyeG). +**Note**: For support please join our [Discord](https://discord.gg/T5vZU6UyeG). ### Requirements @@ -86,7 +86,7 @@ cd Grasscutter .\gradlew jar # Compile ``` -##### Linux +##### Linux (GNU) ```bash git clone https://github.com/Grasscutters/Grasscutter.git @@ -97,10 +97,6 @@ chmod +x gradlew You can find the output jar in the root of the project folder. -### Commands have moved to the [wiki](https://github.com/Grasscutters/Grasscutter/wiki/Commands)! +### Troubleshooting -# Quick Troubleshooting - -* If compiling wasn't successful, please check your JDK installation (Make sure its JDK 17 or higher and validated JDK's bin PATH variable). -* My client doesn't connect, doesn't login, 4206, etc... - Mostly your proxy daemon setup is *the issue*. If you're using Fiddler, change the default port to anything other than 8888. -* Startup sequence: MongoDB > Grasscutter > Proxy Daemon (mitmdump, fiddler, etc.) > Game +For a list of common issues and solutions and to ask for help, please join [our Discord server](https://discord.gg/T5vZU6UyeG) and go to the support channel. diff --git a/src/main/java/emu/grasscutter/command/commands/SetPropCommand.java b/src/main/java/emu/grasscutter/command/commands/SetPropCommand.java index 564f6c16f..e7fa7e3c5 100644 --- a/src/main/java/emu/grasscutter/command/commands/SetPropCommand.java +++ b/src/main/java/emu/grasscutter/command/commands/SetPropCommand.java @@ -1,5 +1,10 @@ package emu.grasscutter.command.commands; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.IntStream; + import emu.grasscutter.command.Command; import emu.grasscutter.command.CommandHandler; import emu.grasscutter.data.GameData; @@ -9,9 +14,6 @@ import emu.grasscutter.game.tower.TowerLevelRecord; import emu.grasscutter.server.packet.send.PacketOpenStateChangeNotify; import emu.grasscutter.server.packet.send.PacketSceneAreaUnlockNotify; import emu.grasscutter.server.packet.send.PacketScenePointUnlockNotify; -import java.util.HashMap; -import java.util.List; -import java.util.Map; @Command( label = "setProp", @@ -22,11 +24,8 @@ import java.util.Map; public final class SetPropCommand implements CommandHandler { // List of map areas. Unfortunately, there is no readily available source for them in excels or // bins. - private static final List sceneAreas = - List.of( - 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 32, 100, 101, 102, 103, 200, 210, 300, 400, 401, 402, 403); - Map props; + private static final List sceneAreas = IntStream.range(1, 1000).boxed().toList(); + private final Map props; public SetPropCommand() { this.props = new HashMap<>();