@Override
    public void render(Graphics g) {
        super.render(g);
        if (shouldRender) {
            BlockManager bm = registry.getBlockManager();
            if (bm != null) {
                int sizeX = 160;
                int sizeY = 160;
                int x = registry.getGameController().getGamePanel().getWidth()-sizeX-10;
                int y = 10;
                if(bm.renderMiniMap(g, x, y, sizeX, sizeY, resourceName)) {
                    g.drawImage(imageMiniMapBorder, x-9, y-9, null);
                }
            }
        }
    }