Fabric API

Fabric API

112M Downloads

Jukeboxes do not respect transactions

TropheusJ opened this issue ยท 2 comments

commented

using FAPI 0.92.0 on 1.20.1
code:

try (Transaction t = Transaction.openOuter()) {
    long inserted = inv.insert(ItemVariant.of(item), item.getCount(), t);
    t.abort();
}

before insertion: contains empty stack
image
after insert: contains record
image
after aborting, this does not get reverted.

commented

#3517 fixes this issue in 1.20.4.

commented

Shouldn't be too hard to backport.