Skip to content

Commit

Permalink
hotfix hiring here too
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Nov 28, 2021
1 parent 605273b commit 7665df8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ public void updateElement(final int index, @NotNull final Pane rowPane)
@NotNull final ICitizenDataView citizen = citizens.get(index);
final Button isPaused = rowPane.findPaneOfTypeByID(BUTTON_PAUSE, Button.class);

if ((citizen.getWorkBuilding() == null || colony.getBuilding(citizen.getWorkBuilding()).getModuleViewMatching(WorkerBuildingModuleView.class, m -> m.canBeHiredAs(selectedModule.getJobEntry())) != null)
&& selectedModule.canAssign(citizen)
if (selectedModule.canAssign(citizen)
&& !selectedModule.isFull()
&& !selectedModule.getAssignedCitizens().contains(citizen.getId()))
{
Expand Down

0 comments on commit 7665df8

Please sign in to comment.