Skip to content

Commit

Permalink
Improved WorldGuard code
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Sep 30, 2021
1 parent bbffdc7 commit 410cdfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 410cdfe

Please sign in to comment.