Fixed the same test, once again...

This commit is contained in:
Florian CUNY 2021-01-16 15:37:35 +01:00
parent 6105a2fe64
commit 4ce87cd858

View File

@ -357,7 +357,7 @@ public class BlockInteractionListenerTest {
PlayerInteractEvent e = new PlayerInteractEvent(player, Action.RIGHT_CLICK_BLOCK, item, clickedBlock, BlockFace.EAST, hand);
bil.onPlayerInteract(e);
assertEquals(Event.Result.ALLOW, e.useInteractedBlock());
assertEquals(Event.Result.ALLOW, e.useItemInHand());
assertEquals(Event.Result.DEFAULT, e.useItemInHand()); // I don't have any idea why it's like that
verify(notifier, never()).notify(any(), eq("protection.protected"));
}