I made a code that if i touch a certain block all lava in my level gets removed. that works and all but then if i stop touching that block i want my lava to come back in the level so you cant get passed
public void Button()
{
if(canSee(FloorButton.class))
{
World world = getWorld();
world.removeObjects(world.getObjects(Lava.class));
}
else {
getOneObjectAtOffset(125,425,Lava.class);
}
}
