Applied Energistics 2

Applied Energistics 2

160M Downloads

Interface Item Stack Inconsistencies

bryce-happel-walton opened this issue ยท 8 comments

commented

Describe the bug

AE2 Interfaces will cap the item stack limit to what it believes to be the real limit, regardless of the actual limit.

How to reproduce the bug

Install Supplementaries and export shulker shells from an AE2 Interface. Supplementaries makes shulker shells into a wearable helmet, but the inventory stack limit is still 64. AE2 Interfaces will only allow you to export a stack size of 1 instead of 64. You can even pull out stacks from a terminal and interact with them like normal in other user interfaces.

Expected behavior

Export the correct stack size.

Additional details

image

image

During testing I encountered another bug. When I disabled Supplementaries, loaded the world and set the interface to export 64, then re-enabled Supplementaries, all the shulker shells were gone. The export was set back to 1, but I couldn't pull anything out and the network did not have the shells that were in the exported when Supplementaries was disabled. I added more shells to the network, then the originals showed up again.

Also I tried to test on Fabric, but Supplementaries does not appear to be working properly. The config option for wearable shulker shells is enabled, but it does not do anything, so I can't test.

Which minecraft version are you using?

1.20.1

On which mod loaders does it happen?

Forge 47.2.20
Neoforge 47.1.99

Crash log

Forced Crash

commented

I am sorry can you clarify what you mean by "interface" here?
ME Interfaces, or the user interfaces?

commented

I am sorry can you clarify what you mean by "interface" here?

ME Interfaces, or the user interfaces?

I edited the issue to make it more clear

commented

I don't actually see what you are describing (wearable shulker shells) in the feature list of Quark...
We simply ask the item for its maximum stack size, we do not check for anything else, really.
Please provide the forced-crash report (see the issue template when you create a new issue for instructions), oh and did you try this with just Quark & AE2?

commented

I don't actually see what you are describing (wearable shulker shells) in the feature list of Quark...

We simply ask the item for its maximum stack size, we do not check for anything else, really.

Please provide the forced-crash report (see the issue template when you create a new issue for instructions), oh and did you try this with just Quark & AE2?

Oh you know you're right it's not Quark. I'm playing ATM9 and they added Quark then I had the issue. I don't know exactly which mod it is, but the issue is still present. Is there a way to have different stack sizes for different contexts? You can hold a stack of shells but when you equip it you can only have 1 in the helmet slot. I noticed some of my shells have nbt data too by analyzing with Integrated Dynamics.

I'll investigate further and force a crash.

commented

I updated the issue with more details, a forced crash report, corrections, and modloader versions.

commented

We might have to move to the NBT-aware max stack size methods. (which Fabric previously did not have)

commented

We might have to move to the NBT-aware max stack size methods. (which Fabric previously did not have)

Yep that's also what I thought, hence I wanted to check Quarks code to see if they did it stack-aware and found nothing.
Good on you for finding it in supplementary :-D