From a8f906efa0eb06d1d32d6ac12874933d59871b78 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 19 Mar 2016 14:40:51 +1100 Subject: Deprecate dangerous method paramater used for unsafe chunk unloads. --- src/main/java/org/bukkit/World.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index 1e150d10..9d71de4b 100644 --- a/src/main/java/org/bukkit/World.java +++ b/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); /** -- cgit v1.2.3