Alright, thanks for the help guys.
EDIT:/
I just figured out that for some reason when i do this;
for (RS2Object object : getObjects().getAll()) {
if (object.getName().equals("Large door")) {
modifiedFlags[object.getLocalX()][object.getLocalY()] = 0;
}
}
It'll work for doors, gates but for some reason it doesn't work with large doors, any ideas ?