GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
241 stars 179 forks source link

Removing frames from pipes in structure won't cause multiblock structure invalidization #2582

Open MCTian-mi opened 1 month ago

MCTian-mi commented 1 month ago

GregTech CEu Version

2.8.10

Modpack Used

No response

Addons Installed

No response

Environment

Singleplayer

New Worlds

Yes

Cross-Mod Interaction

No

Expected Behavior

Multiblocks should invalidiate themselves when the frames from pipes in their structure.

Actual Behavior

No they don't.

Steps to Reproduce

1) Build a multiblock with frames in their structure (using frames() predicate in code) using framed pipes. 2) The multiblock forms sucessfully. 3) Removing frames from pipes using a crowbar. 4) The multiblock thinks it's still formed.

Additional Information

image

MCTian-mi commented 1 month ago

The reason why a multiblock isn't invalidiating itself is probably the blockstate isn't changed before and after the removal of frames, which let it pass the cach checking.