Skip to content

Commit

Permalink
Changed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sfiguz7 committed Dec 12, 2023
1 parent a690f81 commit d8b1209
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,11 @@ void testEventIsFired() {
activateAnvilTalisman(true, true);
server.getPluginManager().assertEventFired(TalismanActivateEvent.class, ignored -> true);
server.getPluginManager().clearEvents();
// Assert the normal talisman does not activate in the ender chest
activateAnvilTalisman(false, true);

// Try to activate the talisman in the inventory. If the catch is not hit, throw an error
// Assert the normal talisman does not activate in the ender chest
boolean caught = false;
try {
activateAnvilTalisman(false, false);
activateAnvilTalisman(false, true);
server.getPluginManager().assertEventFired(TalismanActivateEvent.class, ignored -> true);
} catch (AssertionError ignored) {
caught = true;
Expand Down

0 comments on commit d8b1209

Please sign in to comment.