[commands] Rename Java factory wait() to waitSeconds() (#4684)

This is needed to avoid a conflict with Object.wait() when using static imports.
C++ doesn't have this issue, and has units, so Wait() still makes sense there.
This commit is contained in:
Starlight220
2022-11-22 20:16:27 +02:00
committed by GitHub
parent 76e918f71e
commit 52d2c53888

View File

@@ -100,7 +100,7 @@ public final class Commands {
* @return the command
* @see WaitCommand
*/
public static CommandBase wait(double seconds) {
public static CommandBase waitSeconds(double seconds) {
return new WaitCommand(seconds);
}