Skip to content

Commit 55f896e

Browse files
committed
chore: fix create deps version
1 parent 52df115 commit 55f896e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

forge/src/main/java/ru/zznty/create_factory_logistics/logistics/composite/CompositePackageItem.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void appendHoverText(ItemStack stack, TooltipContext tooltipContext, List
9898
@Override
9999
public InteractionResultHolder<ItemStack> open(Level worldIn, Player playerIn, InteractionHand handIn) {
100100
ItemStack box = playerIn.getItemInHand(handIn);
101-
playerIn.setItemInHand(handIn, PackageItem.containing(getContents(box)));
101+
playerIn.setItemInHand(handIn, PackageItem.containing(getContents(worldIn.registryAccess(), box)));
102102
InteractionResultHolder<ItemStack> resultHolder = super.open(worldIn, playerIn, handIn);
103103
if (resultHolder.getResult() == InteractionResult.SUCCESS && !worldIn.isClientSide()) {
104104
for (ItemStack child : getChildren(worldIn.registryAccess(), box)) {
@@ -127,6 +127,9 @@ public static ItemStackHandler getContents(HolderLookup.Provider lookupProvider,
127127
}
128128

129129
public static ItemStack of(HolderLookup.Provider lookupProvider, ItemStack box, List<ItemStack> originalChildren) {
130+
if (originalChildren.isEmpty())
131+
return PackageItem.containing(PackageItem.getContents(box));
132+
130133
ItemStack compositeBox = new ItemStack(FactoryItems.COMPOSITE_PACKAGE.get());
131134

132135
PatchedDataComponentMap components = new PatchedDataComponentMap(box.getComponents());

forge/src/main/java/ru/zznty/create_factory_logistics/mixin/logistics/composite/CompositePackageSawingMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private void unpackCompositePackage(CallbackInfo ci, @Local(ordinal = 0) ItemSta
3838
@Local List<ItemStack> list) {
3939
if (input.getItem() instanceof CompositePackageItem) {
4040
inventory.clear();
41-
ItemStackHandler results = CompositePackageItem.getContents(input);
41+
ItemStackHandler results = CompositePackageItem.getContents(getLevel().registryAccess(), input);
4242
for (int i = 0; i < results.getSlots(); i++) {
4343
ItemStack stack = results.getStackInSlot(i);
4444
if (!stack.isEmpty())

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ version=0.0.0
4848

4949
create_version_requirement = 6.0.6
5050
create_version = 6.0.6-98
51-
ponder_version = 1.0.56
51+
ponder_version = 1.0.59
5252
flywheel_version = 1.0.4
5353
registrate_version = MC1.21-1.3.0+62
5454
jei_version = 19.21.0.247

0 commit comments

Comments
 (0)