From b56a6d4b7c6196ecd4b5803f54ca55a712a11249 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 29 Jun 2016 03:15:06 +1000 Subject: [PATCH] Fixes #168 --- core/src/main/java/com/boydti/fawe/object/HistoryExtent.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/boydti/fawe/object/HistoryExtent.java b/core/src/main/java/com/boydti/fawe/object/HistoryExtent.java index 0bb504f9..8ba22621 100644 --- a/core/src/main/java/com/boydti/fawe/object/HistoryExtent.java +++ b/core/src/main/java/com/boydti/fawe/object/HistoryExtent.java @@ -54,8 +54,11 @@ public class HistoryExtent extends AbstractDelegateExtent { @Override public boolean setBlock(final Vector location, final BaseBlock block) throws WorldEditException { - int x = location.getBlockX(); int y = location.getBlockY(); + if (y > 255 || y < 0) { + return false; + } + int x = location.getBlockX(); int z = location.getBlockZ(); int combined = queue.getCombinedId4DataDebug(x, y, z, 0, session); int id = (combined >> 4);