From ca3fdf81e1e6bf69830a42f99fb8d60bf19f9fb7 Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 4 Mar 2020 18:49:41 -0800 Subject: [PATCH] Preclear event was not using oldIsland argument. --- .../world/bentobox/bentobox/api/events/island/IslandEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/api/events/island/IslandEvent.java b/src/main/java/world/bentobox/bentobox/api/events/island/IslandEvent.java index 1f02a75e4..942148839 100644 --- a/src/main/java/world/bentobox/bentobox/api/events/island/IslandEvent.java +++ b/src/main/java/world/bentobox/bentobox/api/events/island/IslandEvent.java @@ -687,7 +687,7 @@ public class IslandEvent extends IslandBaseEvent { Bukkit.getPluginManager().callEvent(change); return change; case PRECLEAR: - IslandPreclearEvent preclear = new IslandPreclearEvent(island, player, admin, location, island); + IslandPreclearEvent preclear = new IslandPreclearEvent(island, player, admin, location, oldIsland); Bukkit.getPluginManager().callEvent(preclear); return preclear; default: