mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-10 09:21:31 +01:00
Fixes failures in obsidian cooping listener. (#1965)
Failures happened after implementing #1964
This commit is contained in:
parent
9f163f0572
commit
b3e55a7b55
@ -153,6 +153,11 @@ public class ObsidianScoopingListenerTest {
|
||||
map.put("OBSIDIAN_SCOOPING", true);
|
||||
when(ws.getWorldFlags()).thenReturn(map);
|
||||
|
||||
PlayerInventory playerInventory = mock(PlayerInventory.class);
|
||||
when(playerInventory.getItemInMainHand()).thenReturn(item);
|
||||
when(playerInventory.getItemInOffHand()).thenReturn(new ItemStack(Material.AIR));
|
||||
when(p.getInventory()).thenReturn(playerInventory);
|
||||
|
||||
// Addon
|
||||
when(iwm.getAddon(Mockito.any())).thenReturn(Optional.empty());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user