mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-12 10:44:42 +01:00
Fix ClaimBlockTask distance world error.
This commit is contained in:
parent
542247e73d
commit
81e09725f2
@ -59,7 +59,7 @@ public void run() {
|
||||
Location lastLocation = playerData.lastAfkCheckLocation;
|
||||
// if he's not in a vehicle and has moved at least three blocks since the last check and he's not being pushed around by fluids
|
||||
if (player.getVehicle() == null &&
|
||||
(lastLocation == null || lastLocation.distanceSquared(player.getLocation()) >= 0) &&
|
||||
(lastLocation == null || lastLocation.getWorld() != player.getWorld() || lastLocation.distanceSquared(player.getLocation()) >= 0) &&
|
||||
!NMSUtil.getInstance().isBlockWater(player.getLocation().getBlock())) {
|
||||
int accruedBlocks = playerData.getBlocksAccruedPerHour() / 12;
|
||||
if (accruedBlocks < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user