From d93c2073896e63aca5a859fe7182ba24dbe84cd3 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 28 May 2017 19:16:05 +0500 Subject: 2017-05-28 --- src/world/Block.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/world/Block.cpp') diff --git a/src/world/Block.cpp b/src/world/Block.cpp index 3cf09db..54b7e5e 100644 --- a/src/world/Block.cpp +++ b/src/world/Block.cpp @@ -2,9 +2,7 @@ Block::~Block() {} -Block::Block(unsigned short idAndState, unsigned char light) : id(idAndState >> 4), state(idAndState & 0x0F) {} - -Block::Block(unsigned short id, unsigned char state, unsigned char light) : id(id), state(state) {} +Block::Block(unsigned short id, unsigned short state, unsigned char light) : id(id), state(state) {} Block::Block() : id(0), state(0) {} -- cgit v1.2.3