Changed instanceof BlockContainer to Block.hasEntity, close #1524.