From 410cdfe7e3cff0c991626c71e919d72e500ed390 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 30 Sep 2021 12:22:03 +0100 Subject: [PATCH] Improved WorldGuard code --- .../eco/spigot/integrations/antigrief/AntigriefWorldGuard.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/integrations/antigrief/AntigriefWorldGuard.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/integrations/antigrief/AntigriefWorldGuard.kt index 9ad83c78b..47d065545 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/integrations/antigrief/AntigriefWorldGuard.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/spigot/integrations/antigrief/AntigriefWorldGuard.kt @@ -88,7 +88,7 @@ class AntigriefWorldGuard : AntigriefWrapper { else -> return true } - return if (!query.testBuild(BukkitAdapter.adapt(victim.getLocation()), localPlayer, flag)) { + return if (!query.testBuild(BukkitAdapter.adapt(victim.location), localPlayer, flag)) { WorldGuard.getInstance().platform.sessionManager.hasBypass( localPlayer, BukkitAdapter.adapt(player.world)