IntelliJ wants me to make my variables final, but I need them to change (I will be modifying them within the method). How can I fix this issue?
Here is my code, I've never had this issue before:
public void openDoor(int id, int x, int y, int face, int type) {
Server.getTaskScheduler().schedule(new Task(0, true) {
@Override
protected void execute() {
ObjectManager.deleteObject(c, x, y); //Error is here
}
});
}