mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-15 15:16:46 +01:00
Merge branch 'master' into acquirable
This commit is contained in:
commit
470cc09767
@ -189,12 +189,8 @@ public class InventoryClickProcessor {
|
||||
return !result.isCancel();
|
||||
});
|
||||
|
||||
var itemResult = pair.left();
|
||||
var map = pair.right();
|
||||
map.forEach(targetInventory::setItemStack);
|
||||
|
||||
ItemStack itemResult = TransactionOption.ALL.fill(targetInventory, pair.left(), pair.right());
|
||||
clickResult.setClicked(itemResult);
|
||||
|
||||
return clickResult;
|
||||
}
|
||||
|
||||
@ -216,12 +212,8 @@ public class InventoryClickProcessor {
|
||||
return !result.isCancel();
|
||||
}, start, end, step);
|
||||
|
||||
var itemResult = pair.left();
|
||||
var map = pair.right();
|
||||
map.forEach(targetInventory::setItemStack);
|
||||
|
||||
ItemStack itemResult = TransactionOption.ALL.fill(targetInventory, pair.left(), pair.right());
|
||||
clickResult.setClicked(itemResult);
|
||||
|
||||
return clickResult;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user