This commit is contained in:
Jesse Boyd 2016-06-29 03:15:06 +10:00
parent 1867a41d8a
commit b56a6d4b7c

View File

@ -54,8 +54,11 @@ public class HistoryExtent extends AbstractDelegateExtent {
@Override @Override
public boolean setBlock(final Vector location, final BaseBlock block) throws WorldEditException { public boolean setBlock(final Vector location, final BaseBlock block) throws WorldEditException {
int x = location.getBlockX();
int y = location.getBlockY(); int y = location.getBlockY();
if (y > 255 || y < 0) {
return false;
}
int x = location.getBlockX();
int z = location.getBlockZ(); int z = location.getBlockZ();
int combined = queue.getCombinedId4DataDebug(x, y, z, 0, session); int combined = queue.getCombinedId4DataDebug(x, y, z, 0, session);
int id = (combined >> 4); int id = (combined >> 4);