Skip to content

Commit b714428

Browse files
Correctly drop items from slot in transactional api
1 parent 59639d7 commit b714428

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fabric/src/main/java/me/moros/bending/fabric/platform/item/FabricPlayerInventory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public void dropItem(EquipmentSlot slot) {
9292
try (Transaction transaction = Transaction.openOuter()) {
9393
PlayerInventoryStorage.of(handle).drop(ItemVariant.of(item), item.getCount(), transaction);
9494
transaction.commit();
95+
item.setCount(0);
9596
}
9697
}
9798
}

0 commit comments

Comments
 (0)