From dcd030c6ed41e080846d1d50cf82e1055ae48edd Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 15 Sep 2017 20:46:56 +0500 Subject: 2017-09-15 --- src/Block.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Block.cpp') diff --git a/src/Block.cpp b/src/Block.cpp index 840dbcf..667670d 100644 --- a/src/Block.cpp +++ b/src/Block.cpp @@ -8,4 +8,8 @@ Block::Block() : id(0), state(0), light(0), sky(0) {} bool operator==(const BlockId& lhs, const BlockId &rhs) { return (lhs.id == rhs.id) && (lhs.state == rhs.state); +} + +bool operator<(const BlockId& lhs, const BlockId &rhs) { + return (lhs.id < rhs.id); } \ No newline at end of file -- cgit v1.2.3