Skip to content

Threshold Switch incorrectly showing maximum capacity (max stack/items) #7688

@ransokbukaj

Description

@ransokbukaj

Description

When storing non-stackable items inside containers, the threshold switch displays the maximum amount of space wrong (the actual maximum amount of space minus the amount of non-stackable items). This messes with the redstone signal settings when the incorrectly displayed amount of maximum space reaches bellow the threshold originally set for the redstone signal.

The threshold switch before inserting the items:
Image

The items inserted:
Image

The threshold switch after inserting the items:
Image

Edit 1:
As it turns out, something similar also happens when tracking items instead of stacks. When I put in stackable items, everything works as intented, but as soon as I put in a non-stackable item, it subtracts every item inside the container from the displayed maximum capacity.

I would guess that this is different symptom of the same issue, but for now, it leaves threshold switches completely unusable when storing non-stackable items.

Edit 2:
Items which only stack up to 16 cause the exact same problem as non-stackable items.

Game Log

https://mclo.gs/Zxb5et9

Debug Information

Client Info
Create:
	Mod Version: 6.0.1
	NeoForge Version: 21.1.128
	Minecraft Version: 1.21.1

Graphics:
	Flywheel Version: 1.0.1-11
	Flywheel Backend: flywheel:indirect
	OpenGL Renderer: NVIDIA GeForce GTX 1050/PCIe/SSE2
	OpenGL Version: 4.6.0 NVIDIA 560.35.03
	Graphics Mode: Fancy

System Information:
	Operating System: Linux (amd64) version 6.11.0-18-generic
	Java Version: 21.0.3, Microsoft
	JVM Flags: 2 total; -Xms512m -Xmx4096m
	Memory: 586012112 bytes (558 MiB) / 1535115264 bytes (1464 MiB) up to 4294967296 bytes (4096 MiB)
	Total Memory: 7373799424 bytes (7029 MiB) / 16724832256 bytes (15943 MiB)
	CPU: Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz @ 3.00 GHz; 4 cores / 4 threads on 1 socket(s)
	Graphics cards: none

Other Mods:
	Forgified Fabric Transfer API (v1): 5.4.1+d719f32719
	Forgified Fabric Renderer API (v1): 3.4.0+acb05a3919
	Sodium Extra: 0.6.0+mc1.21.1
	Ponder: 1.0.39
	Forgified Fabric Item API (v1): 11.1.1+57cdfa8219
	Forgified Fabric Model Loading API (v1): 2.0.0+a6e994cd19
	Just Enough Items: 19.21.0.247
	Forgified Fabric Rendering Fluids (v1): 3.1.6+857185bc19
	Lithium: 0.14.8+mc1.21.1
	Forgified Fabric Screen Handler API (v1): 1.3.87+8dbc56dd19
	Forgified Fabric Resource Loader (v0): 1.3.1+4ea8954419
	Forgified Fabric Rendering (v1): 5.0.5+077ba95f19
	Forgified Fabric Renderer - Indigo: 1.7.0+acb05a3919
	Forgified Fabric Convention Tags: 2.1.1+7f945d5b19
	Controlling: 19.0.4
	ModernFix: 5.20.2+mc1.21.1
	EMI Loot: 0.7.5+1.21+neoforge
	Forgified Fabric Command API (v2): 2.2.28+36d727be19
	Forgified Fabric Convention Tags (v2): 2.9.1+231468e519
	Forgified Fabric BlockView API (v2): 1.0.10+9afaaf8c19
	Forgified Fabric Data Attachment API (v1): 1.2.0+7330bc1b19
	Forgified Fabric Screen API (v1): 2.0.25+b282c4bb19
	Sodium: 0.6.9+mc1.21.1
	Forgified Fabric Particles (v1): 4.0.2+824f924c19
	Sinytra Connector: 2.0.0-beta.7+1.21.1
	Fzzy Config: 0.6.4+1.21+neoforge
	Forgified Fabric API: 0.107.0+2.0.23+1.21.1
	Forgified Fabric Content Registries (v0): 8.0.17+0a0c14ff19
	Forgified Fabric Transitive Access Wideners (v1): 6.1.0+0df3143b19
	Entity Model Features: 2.4.1
	EMI: 1.1.20+1.21.1+neoforge
	Entity Texture Features: 6.2.9
	Forgified Fabric Game Rule API (v1): 1.0.53+36d727be19
	Forgified Fabric API Base: 0.4.42+d1308ded19
	Mouse Tweaks: 2.26.1
	Forgified Fabric API Lookup API (v1): 1.6.69+c21168c319
	Forgified Fabric BlockRenderLayer Registration (v1): 1.1.52+b089b4bd19
	Forgified Fabric Block API (v1): 1.0.22+a6e994cd19
	Forgified Fabric Resource Conditions API (v1): 4.3.0+edeecbd819
	Reese's Sodium Options: 1.8.3+mc1.21.4
	Kotlin For Forge: 5.7.0
	Forgified Fabric Item Group API (v1): 4.1.6+e324903319
	Forgified Fabric Game Test API (v1): 2.0.5+29f188ce19
	Searchables: 1.0.2
	EntityCulling: 1.7.3
	Noisium: 2.3.0+mc1.21-1.21.1
	Effortless Structure: 3.4.0
	Forgified Fabric Biome API (v1): 13.0.30+1e62d33c19
	Forgified Fabric Entity Events (v1): 1.7.0+1af6e62419
	Forgified Fabric Registry Sync (v0): 5.1.3+0c9b5b5419
	Continuity: 3.0.01.21.neoforge
	EMI Enchanting: 0.1.2+1.21+neoforge
	Architectury: 13.0.8
	AppleSkin: 3.0.5+mc1.21
	Forgified Fabric Recipe API (v1): 5.0.13+59440bcc19
	Ferrite Core: 7.0.2
	Forgified Fabric Object Builder API (v1): 15.2.1+cc242efd19
	Forgified Fabric Loot API (v2): 3.0.15+a3ee712d19
	Forgified Fabric Loot API (v3): 1.0.3+333dfad919
	EMI Professions (EMIP): 1.0.3
	Dynamic FPS: 3.9.0
	Forgified Fabric Rendering Data Attachment (v1): 0.3.48+73761d2e19
	Forgified Fabric Networking API (v1): 4.3.0+0d25d43e19
	Forgified Fabric Sound API (v1): 1.0.23+10b84f8419
	Forgified Fabric Message API (v1): 6.0.13+e053909619
	Forgified Fabric Lifecycle Events (v1): 2.4.0+36b6b86a19
	Forgified Fabric Data Generation API (v1): 20.2.22+2d91a6db19
	Forgified Fabric Events Interaction (v0): 0.7.13+7b71cc1619
	Forgified Fabric Key Binding API (v1): 1.0.47+62cc7ce119
	Forgified Fabric Client Tags: 1.1.15+e053909619
Server Info
Create:
	Mod Version: 6.0.1
	NeoForge Version: 21.1.128
	Minecraft Version: 1.21.1

System Information:
	Operating System: Linux (amd64) version 6.11.0-18-generic
	Java Version: 21.0.3, Microsoft
	JVM Flags: 2 total; -Xms512m -Xmx4096m
	Memory: 586012112 bytes (558 MiB) / 1535115264 bytes (1464 MiB) up to 4294967296 bytes (4096 MiB)
	Total Memory: 7373799424 bytes (7029 MiB) / 16724832256 bytes (15943 MiB)
	CPU: Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz @ 3.00 GHz; 4 cores / 4 threads on 1 socket(s)
	Graphics cards: none

Other Mods:
	Forgified Fabric Transfer API (v1): 5.4.1+d719f32719
	Forgified Fabric Renderer API (v1): 3.4.0+acb05a3919
	Sodium Extra: 0.6.0+mc1.21.1
	Ponder: 1.0.39
	Forgified Fabric Item API (v1): 11.1.1+57cdfa8219
	Forgified Fabric Model Loading API (v1): 2.0.0+a6e994cd19
	Just Enough Items: 19.21.0.247
	Forgified Fabric Rendering Fluids (v1): 3.1.6+857185bc19
	Lithium: 0.14.8+mc1.21.1
	Forgified Fabric Screen Handler API (v1): 1.3.87+8dbc56dd19
	Forgified Fabric Resource Loader (v0): 1.3.1+4ea8954419
	Forgified Fabric Rendering (v1): 5.0.5+077ba95f19
	Forgified Fabric Renderer - Indigo: 1.7.0+acb05a3919
	Forgified Fabric Convention Tags: 2.1.1+7f945d5b19
	Controlling: 19.0.4
	ModernFix: 5.20.2+mc1.21.1
	EMI Loot: 0.7.5+1.21+neoforge
	Forgified Fabric Command API (v2): 2.2.28+36d727be19
	Forgified Fabric Convention Tags (v2): 2.9.1+231468e519
	Forgified Fabric BlockView API (v2): 1.0.10+9afaaf8c19
	Forgified Fabric Data Attachment API (v1): 1.2.0+7330bc1b19
	Forgified Fabric Screen API (v1): 2.0.25+b282c4bb19
	Sodium: 0.6.9+mc1.21.1
	Forgified Fabric Particles (v1): 4.0.2+824f924c19
	Sinytra Connector: 2.0.0-beta.7+1.21.1
	Fzzy Config: 0.6.4+1.21+neoforge
	Forgified Fabric API: 0.107.0+2.0.23+1.21.1
	Forgified Fabric Content Registries (v0): 8.0.17+0a0c14ff19
	Forgified Fabric Transitive Access Wideners (v1): 6.1.0+0df3143b19
	Entity Model Features: 2.4.1
	EMI: 1.1.20+1.21.1+neoforge
	Entity Texture Features: 6.2.9
	Forgified Fabric Game Rule API (v1): 1.0.53+36d727be19
	Forgified Fabric API Base: 0.4.42+d1308ded19
	Mouse Tweaks: 2.26.1
	Forgified Fabric API Lookup API (v1): 1.6.69+c21168c319
	Forgified Fabric BlockRenderLayer Registration (v1): 1.1.52+b089b4bd19
	Forgified Fabric Block API (v1): 1.0.22+a6e994cd19
	Forgified Fabric Resource Conditions API (v1): 4.3.0+edeecbd819
	Reese's Sodium Options: 1.8.3+mc1.21.4
	Kotlin For Forge: 5.7.0
	Forgified Fabric Item Group API (v1): 4.1.6+e324903319
	Forgified Fabric Game Test API (v1): 2.0.5+29f188ce19
	Searchables: 1.0.2
	EntityCulling: 1.7.3
	Noisium: 2.3.0+mc1.21-1.21.1
	Effortless Structure: 3.4.0
	Forgified Fabric Biome API (v1): 13.0.30+1e62d33c19
	Forgified Fabric Entity Events (v1): 1.7.0+1af6e62419
	Forgified Fabric Registry Sync (v0): 5.1.3+0c9b5b5419
	Continuity: 3.0.01.21.neoforge
	EMI Enchanting: 0.1.2+1.21+neoforge
	Architectury: 13.0.8
	AppleSkin: 3.0.5+mc1.21
	Forgified Fabric Recipe API (v1): 5.0.13+59440bcc19
	Ferrite Core: 7.0.2
	Forgified Fabric Object Builder API (v1): 15.2.1+cc242efd19
	Forgified Fabric Loot API (v2): 3.0.15+a3ee712d19
	Forgified Fabric Loot API (v3): 1.0.3+333dfad919
	EMI Professions (EMIP): 1.0.3
	Dynamic FPS: 3.9.0
	Forgified Fabric Rendering Data Attachment (v1): 0.3.48+73761d2e19
	Forgified Fabric Networking API (v1): 4.3.0+0d25d43e19
	Forgified Fabric Sound API (v1): 1.0.23+10b84f8419
	Forgified Fabric Message API (v1): 6.0.13+e053909619
	Forgified Fabric Lifecycle Events (v1): 2.4.0+36b6b86a19
	Forgified Fabric Data Generation API (v1): 20.2.22+2d91a6db19
	Forgified Fabric Events Interaction (v0): 0.7.13+7b71cc1619
	Forgified Fabric Key Binding API (v1): 1.0.47+62cc7ce119
	Forgified Fabric Client Tags: 1.1.15+e053909619

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: confirmedIssue's details are known, it is consistently reproducible, and it needs a fixtype: bugIssue where something isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions