From 1f963a1ee2de955da011bcd34ed60d355d17069c Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 26 Apr 2019 16:53:34 +1000 Subject: [PATCH] ChunkUnloadEvent can no longer be cancelled. Mechanisms such as setForceLoaded should be used instead By: md_5 --- .../org/bukkit/event/world/ChunkUnloadEvent.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java b/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java index 145cbe2ebe..5d8271626f 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/ChunkUnloadEvent.java @@ -1,16 +1,14 @@ package org.bukkit.event.world; import org.bukkit.Chunk; -import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; /** * Called when a chunk is unloaded */ -public class ChunkUnloadEvent extends ChunkEvent implements Cancellable { +public class ChunkUnloadEvent extends ChunkEvent { private static final HandlerList handlers = new HandlerList(); - private boolean cancel = false; private boolean saveChunk; public ChunkUnloadEvent(@NotNull final Chunk chunk) { @@ -40,14 +38,6 @@ public class ChunkUnloadEvent extends ChunkEvent implements Cancellable { this.saveChunk = saveChunk; } - public boolean isCancelled() { - return cancel; - } - - public void setCancelled(boolean cancel) { - this.cancel = cancel; - } - @NotNull @Override public HandlerList getHandlers() {