Thanks, i will give it a shot as soon as I have more time to spare! Will update if it will work!
1 | if (Greenfoot.isKeyDown("e") && Lockpick > 0) |
1 2 | Door d = (Door) getOneIntersectingObject(Door.class);if (d != null && !d.getState()) |