diff --git a/src/test/java/io/github/thebusybiscuit/slimefun4/api/events/TestTalismanActivateEvent.java b/src/test/java/io/github/thebusybiscuit/slimefun4/api/events/TestTalismanActivateEvent.java index bf56cea336..2ed902b0a1 100644 --- a/src/test/java/io/github/thebusybiscuit/slimefun4/api/events/TestTalismanActivateEvent.java +++ b/src/test/java/io/github/thebusybiscuit/slimefun4/api/events/TestTalismanActivateEvent.java @@ -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;