From c4b229e1370cd535a89b1ca77f65429854a563d4 Mon Sep 17 00:00:00 2001 From: isokissa3 Date: Wed, 13 Mar 2019 00:20:32 +0200 Subject: [PATCH] Corrected chunk-unload flag bitwise operator --- Common/pom.xml | 4 ++-- WG/pom.xml | 8 ++++---- .../wg/wrappers/v6/WorldGuardSixCommunicator.java | 4 ++-- WG7/pom.xml | 8 ++++---- .../wg/wrappers/v7/WorldGuardSevenCommunicator.java | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Common/pom.xml b/Common/pom.xml index 2b6a486..fa23e2b 100644 --- a/Common/pom.xml +++ b/Common/pom.xml @@ -62,13 +62,13 @@ com.sk89q.worldedit worldedit-bukkit - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided com.sk89q.worldguard worldguard-legacy - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided diff --git a/WG/pom.xml b/WG/pom.xml index 6d50725..6a2539a 100644 --- a/WG/pom.xml +++ b/WG/pom.xml @@ -34,25 +34,25 @@ com.sk89q.worldedit worldedit-core - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided com.sk89q.worldedit worldedit-bukkit - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided com.sk89q.worldguard worldguard-core - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided com.sk89q.worldguard worldguard-legacy - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided diff --git a/WG6/src/main/java/net/goldtreeservers/worldguardextraflags/wg/wrappers/v6/WorldGuardSixCommunicator.java b/WG6/src/main/java/net/goldtreeservers/worldguardextraflags/wg/wrappers/v6/WorldGuardSixCommunicator.java index 8950340..f35cdea 100644 --- a/WG6/src/main/java/net/goldtreeservers/worldguardextraflags/wg/wrappers/v6/WorldGuardSixCommunicator.java +++ b/WG6/src/main/java/net/goldtreeservers/worldguardextraflags/wg/wrappers/v6/WorldGuardSixCommunicator.java @@ -90,9 +90,9 @@ public class WorldGuardSixCommunicator implements WorldGuardCommunicator BlockVector min = region.getMinimumPoint(); BlockVector max = region.getMaximumPoint(); - for(int x = min.getBlockX() << 16; x <= max.getBlockX() << 16; x++) + for(int x = min.getBlockX() >> 4; x <= max.getBlockX() >> 4; x++) { - for(int z = max.getBlockZ() << 16; z <= max.getBlockZ() << 16; z++) + for(int z = min.getBlockZ() >> 4; z <= max.getBlockZ() >> 4; z++) { world.getChunkAt(x, z).load(true); } diff --git a/WG7/pom.xml b/WG7/pom.xml index 20f2d06..a21752d 100644 --- a/WG7/pom.xml +++ b/WG7/pom.xml @@ -36,25 +36,25 @@ com.sk89q.worldedit worldedit-core - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided com.sk89q.worldedit worldedit-bukkit - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided com.sk89q.worldguard worldguard-core - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided com.sk89q.worldguard worldguard-legacy - 7.0.0-beta-02 + 7.0.0-SNAPSHOT provided diff --git a/WG7/src/main/java/net/goldtreeservers/worldguardextraflags/wg/wrappers/v7/WorldGuardSevenCommunicator.java b/WG7/src/main/java/net/goldtreeservers/worldguardextraflags/wg/wrappers/v7/WorldGuardSevenCommunicator.java index c04bd01..a3bb1a7 100644 --- a/WG7/src/main/java/net/goldtreeservers/worldguardextraflags/wg/wrappers/v7/WorldGuardSevenCommunicator.java +++ b/WG7/src/main/java/net/goldtreeservers/worldguardextraflags/wg/wrappers/v7/WorldGuardSevenCommunicator.java @@ -91,9 +91,9 @@ public class WorldGuardSevenCommunicator implements WorldGuardCommunicator BlockVector3 min = region.getMinimumPoint(); BlockVector3 max = region.getMaximumPoint(); - for(int x = min.getBlockX() << 16; x <= max.getBlockX() << 16; x++) + for(int x = min.getBlockX() >> 4; x <= max.getBlockX() >> 4; x++) { - for(int z = max.getBlockZ() << 16; z <= max.getBlockZ() << 16; z++) + for(int z = min.getBlockZ() >> 4; z <= max.getBlockZ() >> 4; z++) { world.getChunkAt(x, z).load(true); }