Skip to content

Commit

Permalink
make ButtonContainer a bit more responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtomi committed Dec 12, 2022
1 parent 3a9e0cf commit 8c00322
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/vamk/tbg/ui/ButtonContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ private void onEntityPlays(EntityPlaysSignal signal) {

button.setEnabled(userControlled);
}

// Enable all entity buttons again
if (userControlled) this.entityButtons.values().forEach(x -> x.setEnabled(true));
}

/**
Expand Down

0 comments on commit 8c00322

Please sign in to comment.