GregTech CE Unofficial

GregTech CE Unofficial

412k Downloads

The material of the framebox is lost

MrKono opened this issue · 0 comments

commented

GregTech CEu Version

v2.7.4

Modpack Used

No

Addons Installed

GCYM 1.2.5
GTFO 1.10.0.2

Environment

Singleplayer

New Worlds

Yes

Cross-Mod Interaction

Yes

Expected Behavior

The material of the framebox is lost

2023-11-12.14-36-05.mp4

It doesn't matter if they are stacked or not.
It happens in survival and in creative.

Actual Behavior

Europium Frame will be put on top of Aluminum Frame

Steps to Reproduce

see video

Additional Information

I have tried for all frames in this environment.

Aluminium, Europium, Iridium, Iron, Titanium, Tungsten, Neutronium, Tritanium, Brass,
Bronze, Invar, BismuthBronze, Ruridit, StainlessSteel, Steel, Ultimet, Tungstencarbide, HSS-G
Wood, TreatedWood, BlackSteel, TungstenSteel, NaquadahAlloy, BlueSteel, HSS-E, HSS-S, PTFE
WatertightSteel, MaragingSteel, HastelloyC276, HastelloyX, HSLASteel, Incoloy

After doing something like the video for several materials other than Aluminum and Europium, I thought this problem might have something to do with block IDs (gregtech:meta_block_frame_X) and metadata.
In the following, Base corresponds to Aluminum in the video and Sec corresponds to Europium in the video.
Let n be the block ID of the Base (X in meta_block_frame_ X), m be the metadata, x be the block ID of the Sec, and y be the metadata.

  • If nx and my (For example, Tungsten and Steel)
    • If there is a frame corresponding to m in the value a less than n, block_frame_a:m is set. If not, block_frame_n:0 (Probably Null) is set.
  • If nx and m=y (For example, Iron and Tungsten)
    • block_frame_n:m is put.
  • If n=x and my (For example, Iridium and Iron)
    • Put Correctly