From 8240f951abba209616e8c0cbdf613498e9f13251 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 19 Mar 2016 14:40:51 +1100 Subject: [PATCH] Deprecate dangerous method paramater used for unsafe chunk unloads. By: md_5 --- paper-api/src/main/java/org/bukkit/World.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 1e150d10d5..9d71de4b75 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -242,7 +242,9 @@ public interface World extends PluginMessageRecipient, Metadatable { * @param safe Controls whether to unload the chunk when players are * nearby * @return true if the chunk has unloaded successfully, otherwise false + * @deprecated it is never safe to remove a chunk in use */ + @Deprecated public boolean unloadChunk(int x, int z, boolean save, boolean safe); /**