diff --git a/plugins/remotefortressreader/remotefortressreader.cpp b/plugins/remotefortressreader/remotefortressreader.cpp index 32bd73dad..9adb1fe90 100644 --- a/plugins/remotefortressreader/remotefortressreader.cpp +++ b/plugins/remotefortressreader/remotefortressreader.cpp @@ -1508,7 +1508,7 @@ static command_result GetBlockList(color_ostream &stream, const BlockRequest *in continue; if (engraving->pos.y < (min_y * 16) || engraving->pos.x >(max_y * 16)) continue; - if (engraving->pos.z < (min_z * 16) || engraving->pos.x >(max_z * 16)) + if (engraving->pos.z < min_z || engraving->pos.x > max_z * 16) continue; if (!isEngravingNew(i)) continue;