Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Extended Drawers) Threshold switch reading incorrect drawer capacity #1459

Open
mkern1200 opened this issue Apr 22, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@mkern1200
Copy link

Describe the Bug

Hello! I'm not sure if this is an issue with Create or Extended Drawers, but the threshold switch seems to not be functioning correctly with the drawers added by that mod. When a threshold switch is attached to a drawer, it will act as if each drawer slot has a max capacity of one stack of items (despite the drawers allowing multiple times that amount by default). As a result, placing one sword in a single drawer slot will cause the threshold switch to register the slot as completely full, even when it can hold thousands more; if the drawer has 4 slots, placing a total of 64 cobblestone in any of that drawer's slots will register as 25% full on the threshold switch; and so on.

Reproduction Steps

  1. Place a drawer (any type).
  2. Put one stack of items in the drawer (however many of that item is considered one "stack", e.g. 1 sword, 16 ender pearls, 64 stone, etc.)
  3. If a single drawer, it will read as 100% full on the threshold switch with this one stack of items. If a double drawer, it will read as 50% full. If a quad drawer, 25% full.

Expected Result

Instead of this, it would be expected that the threshold switch shows the actual capacity of the drawer as it is configured so that the additional storage space can be used with the threshold switch.

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 11

Mod Version

0.5.1f

Minecraft Version

1.20.1

Other Mods

Fabric Loader 0.15.7
Fabric API 0.92.0
Extended Drawers (Fabric) 2.1.1

Additional Context

No response

@mkern1200 mkern1200 added the bug Something isn't working label Apr 22, 2024
@MrStickyPiston
Copy link

Same issue, Xubuntu 22.04.04 LTS / Kubuntu 22.04 LTS.
Same version
Same mods

from extended drawers issue (MattiDragon/ExtendedDrawers#105 (comment)):

[MattiDragon]: Create threshold switches being weird is almost certainly on their end. If they check the max stack size instead of the capacity they're doing it wrong.

[MrStickyPiston]: Seems to work for other storage & in previous versions though

[MattiDragon]: Do those other storages have capacities beyond the max stack size? I'm pretty sure that's causing the issue.

image i made for that issue:
image

@Plasman888
Copy link

I have this bug aswell

@MrStickyPiston
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants