Hi, my Player class is making points constantly add without collecting anything. Heres the code. I thought it will only add if the burger is removed. Turns out it doesn't. -_-
public void eating()
{
Actor Burger;
Burger = getOneObjectAtOffset(0,0,Burger.class);
if (Burger != null);
{
World world;
world = getWorld();
world.removeObject(Burger);
counter.add(2);
}
if(counter.getValue() >= 50)
{
gameOver();
}
}

