[Minor] Code cleanup

This commit is contained in:
Robert von Burg 2023-07-20 15:14:55 +02:00
parent 10f49817f2
commit 6787b00f06
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 2 deletions

View File

@ -24,8 +24,7 @@ public abstract class BasePlanningAndExecutionCommand extends Command {
}
protected Resource getResource(Action action) {
Locator resourceLocator = action.getResourceLocator();
return tx().getResourceBy(resourceLocator.get(1), resourceLocator.get(2), true);
return tx().getResourceFor(action, true);
}
protected static void updateOrderState(StrolchTransaction tx, Activity rootElement, State currentState,