Corrected chunk-unload flag bitwise operator

This commit is contained in:
isokissa3 2019-03-13 00:20:32 +02:00
parent 32b5d257bb
commit c4b229e137
5 changed files with 14 additions and 14 deletions

View file

@ -62,13 +62,13 @@
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-legacy</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>

View file

@ -34,25 +34,25 @@
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-core</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-core</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-legacy</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>

View file

@ -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);
}

View file

@ -36,25 +36,25 @@
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-core</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-core</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q.worldguard</groupId>
<artifactId>worldguard-legacy</artifactId>
<version>7.0.0-beta-02</version>
<version>7.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>

View file

@ -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);
}