Update WorldGuard hook again (#422)

Until it's broken by yet another API change without warning.
This commit is contained in:
112madgamer
2018-11-22 02:31:13 -08:00
committed by RoboMWM
parent 26143ef02f
commit b0d4fa7b5b
2 changed files with 6 additions and 6 deletions
@@ -3,7 +3,7 @@ package me.ryanhamshire.GriefPrevention;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import com.sk89q.worldedit.BlockVector;
import com.sk89q.worldedit.math.BlockVector3;
import com.sk89q.worldedit.world.World;
import com.sk89q.worldguard.WorldGuard;
import com.sk89q.worldguard.bukkit.WorldGuardPlugin;
@@ -39,8 +39,8 @@ class WorldGuardWrapper
{
ProtectedCuboidRegion tempRegion = new ProtectedCuboidRegion(
"GP_TEMP",
new BlockVector(lesserCorner.getX(), 0, lesserCorner.getZ()),
new BlockVector(greaterCorner.getX(), world.getMaxY(), greaterCorner.getZ()));
BlockVector3.at(lesserCorner.getX(), 0, lesserCorner.getZ()),
BlockVector3.at(greaterCorner.getX(), world.getMaxY(), greaterCorner.getZ()));
ApplicableRegionSet overlaps = manager.getApplicableRegions(tempRegion);
for (ProtectedRegion r : overlaps.getRegions()) {