make bit mask protected

TODO same for BIT_OFFSET
This commit is contained in:
Jesse Boyd
2019-04-10 22:03:51 +10:00
parent b24ebaf6f2
commit 808d32bc85
2 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,8 @@ public class AsyncBlock implements Block {
}
public int getTypeId() {
return (queue.getCachedCombinedId4Data(x, y, z, BlockTypes.AIR.getInternalId()) & BlockTypes.BIT_MASK);
int id = (queue.getCachedCombinedId4Data(x, y, z, BlockTypes.AIR.getInternalId()));
return BlockTypes.getFromStateId(id).getInternalId();
}
@Override