Hi, I'm using Danpost's Progress bar code for a school project and I would like to know how to fix this code so I don't get this error. here is the code for my method that is having a problem:thanks
public void setBar()
{
Bar bar = (Bar) getWorld().getObjectsAt(125, 25, Bar.class);
bar.setValue(getHealth());
}

