mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-04 06:44:40 +01:00
Update PackageDefragmenter.java
- Fixed order context getting lost in the repackager
This commit is contained in:
parent
7ff29fd207
commit
3f078e2ab4
1 changed files with 5 additions and 2 deletions
|
@ -54,8 +54,11 @@ public class PackageDefragmenter {
|
|||
|
||||
for (ItemStack box : collectedPackages.get(orderId)) {
|
||||
address = PackageItem.getAddress(box);
|
||||
if (box.has(AllDataComponents.PACKAGE_ORDER_DATA))
|
||||
orderContext = box.get(AllDataComponents.PACKAGE_ORDER_DATA).orderContext();
|
||||
if (box.has(AllDataComponents.PACKAGE_ORDER_DATA)) {
|
||||
PackageOrder context = box.get(AllDataComponents.PACKAGE_ORDER_DATA).orderContext();
|
||||
if (context != null && !context.isEmpty())
|
||||
orderContext = context;
|
||||
}
|
||||
ItemStackHandler contents = PackageItem.getContents(box);
|
||||
Slots: for (int slot = 0; slot < contents.getSlots(); slot++) {
|
||||
ItemStack stackInSlot = contents.getStackInSlot(slot);
|
||||
|
|
Loading…
Add table
Reference in a new issue