From e0cac960b11f28524a12ced764a67ffe63f6e8ae Mon Sep 17 00:00:00 2001 From: HexedHero <6012891+HexedHero@users.noreply.github.com> Date: Sun, 31 Oct 2021 07:51:57 +0000 Subject: [PATCH] Allow spawners to be disabled without adding a stupid high tick rate (#6837) --- patches/server/Configurable-mob-spawner-tick-rate.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/server/Configurable-mob-spawner-tick-rate.patch b/patches/server/Configurable-mob-spawner-tick-rate.patch index 7ad510094..38176a652 100644 --- a/patches/server/Configurable-mob-spawner-tick-rate.patch +++ b/patches/server/Configurable-mob-spawner-tick-rate.patch @@ -37,6 +37,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Paper start - Configurable mob spawner tick rate + if (spawnDelay > 0 && --tickDelay > 0) return; + tickDelay = world.paperConfig.mobSpawnerTickRate; ++ if (tickDelay == -1) { return; } // If disabled + // Paper end if (this.isNearPlayer(world, pos)) { - if (this.spawnDelay == -1) {