diff --git a/plugins/remotefortressreader/remotefortressreader.cpp b/plugins/remotefortressreader/remotefortressreader.cpp index 2e9e2aacf..e321bf8d5 100644 --- a/plugins/remotefortressreader/remotefortressreader.cpp +++ b/plugins/remotefortressreader/remotefortressreader.cpp @@ -1511,9 +1511,9 @@ static command_result GetBlockList(color_ostream &stream, const BlockRequest *in auto engraving = world->engravings[i]; if (engraving->pos.x < (min_x * 16) || engraving->pos.x >(max_x * 16)) continue; - if (engraving->pos.y < (min_y * 16) || engraving->pos.x >(max_y * 16)) + if (engraving->pos.y < (min_y * 16) || engraving->pos.y >(max_y * 16)) continue; - if (engraving->pos.z < min_z || engraving->pos.x > max_z * 16) + if (engraving->pos.z < min_z || engraving->pos.z > max_z) continue; if (!isEngravingNew(i)) continue;