public void renderMiniMapResources(Graphics g, int mx, int my, int cx, int cy, int w, int h, int x, int y, String resourceName) {
        HashMap<String, Resource> rs = new HashMap<String, Resource>(resources);
        Resource resource = null;
        int[] xy = null;

        try {
            for (String key : rs.keySet()) {
                resource = (Resource) rs.get(key);
                if (resource.getResourceType().getName().equals(resourceName) || resourceName.equals("")) {
                    xy = registry.getBlockManager().getMiniMapPosition(mx, my, cx, cy, w, h, resource.getMapX() / this.gameController.getBlockWidth(), resource.getMapY() / this.gameController.getBlockHeight());
                    if ((xy[0] > mx && xy[0] < mx + w) && (xy[1] > my + 1 && xy[1] < my + h)) {
                        renderMiniMapResource(g, xy[0], xy[1]);
                    }
                }
            }
        } catch (Exception e) {
        }
    }