Make WorldCreator#keepSpawnLoaded return the WorldCreator (Fixes #8321) (#8371)

* Make WorldCreator#keepSpawnLoaded return the WorldCreator (Fixes #8321)

Thought that I fixed this before push/merge, apparently not, hence, fix
the return type and add mitigation for this.

* Fix patch/build

* Rebuild patches
This commit is contained in:
Shane Freeder
2022-09-20 01:28:22 +01:00
parent e14a2a0cce
commit ede4468516
2 changed files with 29 additions and 1 deletions

View File

@@ -38,10 +38,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * configuration, otherwise, will act as an override towards this setting
+ *
+ * @param keepSpawnLoaded the new value
+ * @return This object, for chaining
+ */
+ public void keepSpawnLoaded(@NotNull net.kyori.adventure.util.TriState keepSpawnLoaded) {
+ @NotNull
+ public WorldCreator keepSpawnLoaded(@NotNull net.kyori.adventure.util.TriState keepSpawnLoaded) {
+ java.util.Objects.requireNonNull(keepSpawnLoaded, "keepSpawnLoaded");
+ this.keepSpawnLoaded = keepSpawnLoaded;
+ return this;
+ }
+
+ // Paper end