From 546ad8684105f584535e7b6b8dc7734ca1b8c8fb Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Thu, 7 Oct 2021 19:05:56 +0200 Subject: [PATCH] fix: Update StubServer.java to the latest spigot changes (#1345) --- .../com/fastasyncworldedit/util/StubServer.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/worldedit-bukkit/src/test/java/com/fastasyncworldedit/util/StubServer.java b/worldedit-bukkit/src/test/java/com/fastasyncworldedit/util/StubServer.java index f42e44bf7..46893342b 100644 --- a/worldedit-bukkit/src/test/java/com/fastasyncworldedit/util/StubServer.java +++ b/worldedit-bukkit/src/test/java/com/fastasyncworldedit/util/StubServer.java @@ -50,6 +50,7 @@ import org.bukkit.plugin.ServicesManager; import org.bukkit.plugin.messaging.Messenger; import org.bukkit.scheduler.BukkitScheduler; import org.bukkit.scoreboard.ScoreboardManager; +import org.bukkit.structure.StructureManager; import org.bukkit.util.CachedServerIcon; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -226,6 +227,11 @@ public class StubServer implements Server { return 0; } + @Override + public int getTicksPerWaterUndergroundCreatureSpawns() { + return 0; + } + @Override public int getTicksPerAmbientSpawns() { return 0; @@ -693,6 +699,11 @@ public class StubServer implements Server { return 0; } + @Override + public int getWaterUndergroundCreatureSpawnLimit() { + return 0; + } + @Override public int getAmbientSpawnLimit() { return 0; @@ -918,6 +929,11 @@ public class StubServer implements Server { return null; } + @Override + public @NotNull StructureManager getStructureManager() { + return null; + } + /** * @deprecated */