JohnRThomas / Exia-Mining-All-In-One

A mining script for Runemate
7 stars 7 forks source link

OSRSLocation change from IDS to Colors. #3

Closed ghost closed 8 years ago

ghost commented 8 years ago

Fixed. Please merge

package scripts.mining.locations.osrs;

import com.runemate.game.api.hybrid.entities.GameObject; import scripts.mining.locations.Location;

import java.awt.*; import java.util.Set;

public abstract class OSRSLocation extends Location {

@Override
public boolean validate(GameObject o) {
    Set<Color> colors = o.getModel().getDefaultColors();
    for (int i = 0; i < ore.colors.length; i++) {
        if (ore.colors[i] == colors) return true;
    }
    return false;
}

}