From 83d6d0d1e0f7278f47c4fef295610a8c5a7243b9 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 15 Mar 2018 17:03:51 +1100 Subject: [PATCH] Fix CFI visualization offset --- .../java/com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java b/core/src/main/java/com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java index a2f8787f..06c9aceb 100644 --- a/core/src/main/java/com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java +++ b/core/src/main/java/com/boydti/fawe/jnbt/anvil/HeightMapMCAGenerator.java @@ -263,7 +263,7 @@ public class HeightMapMCAGenerator extends MCAWriter implements SimpleWorld, Faw this.player = player; if (player != null) { FaweLocation pos = player.getLocation(); - this.chunkOffset = new Vector2D(pos.x >> 4, pos.z >> 4); + this.chunkOffset = new Vector2D(1 + (pos.x >> 4), 1 + (pos.z >> 4)); } }