From 8c8920c5515d400c6766a4964cb225f14a075937 Mon Sep 17 00:00:00 2001 From: Fluggs Date: Sun, 15 Jul 2018 16:26:26 +0200 Subject: [PATCH] bugfix for rectangle trim Fixes a bug in the dimension / coordinate interpetation for the rectangle trim --- src/me/hwei/mctool/MapAutoTrim.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/hwei/mctool/MapAutoTrim.java b/src/me/hwei/mctool/MapAutoTrim.java index d851a45..51323ae 100644 --- a/src/me/hwei/mctool/MapAutoTrim.java +++ b/src/me/hwei/mctool/MapAutoTrim.java @@ -84,7 +84,7 @@ public static void main(String[] args) { IntPair pos = new IntPair(chunkHandle.getChunkX(), chunkHandle.getChunkZ()); if(opt.rect != null) { if(pos.getLeft() < opt.rect[0] || pos.getLeft() > opt.rect[1] - || pos.getLeft() < opt.rect[2] || pos.getRight() > opt.rect[3]) { + || pos.getRight() < opt.rect[2] || pos.getRight() > opt.rect[3]) { cm.outOfrange = true; } }