Skip to content

Commit

Permalink
Fixed PersistentListenerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Aug 6, 2024
1 parent 5c42567 commit 044d797
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void simulateInventoryClick(InventoryClickEvent event) {

@Test
void testMovableItem() {
PersistentItem persistentItem = new PersistentItem(Material.DIAMOND_PICKAXE).setMobility(Mobility.INTERNAL);
PersistentItem persistentItem = PersistentItem.newItem(Material.DIAMOND_PICKAXE).setMobility(Mobility.INTERNAL);
InventoryView view = setupInventoryClickEventView();
int slot = view.getTopInventory().getSize();
view.getBottomInventory().setItem(0, persistentItem.create());
Expand Down

0 comments on commit 044d797

Please sign in to comment.