GregTechCEu / GregTech

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

[BUG] When using the GT wrench to rotate the Ender Utilities block, the contents are emptied #861

Closed KasumiNova closed 2 years ago

KasumiNova commented 2 years ago

Describe the bug Using the GT wrench to rotate the Ender Utilities blocks, the contents are emptied.

Versions Forge: 14.23.5.2860 GTCEu: 2.1.4-beta Modpack: StarryNight Pray

Setup Does this issue happen on Singleplayer, a Server, or both: Both Does this issue happen on a newly generated world: Both

Steps To Reproduce 1) Place a rotatable block of Ender Utilities. 2) Put something in, such as memory cards, items. 3) Rotate them with a GT wrench (electric or regular). 4) Open them and the contents disappear.

Expected behavior This will result in unnecessary item loss for the player.

Videos Google Drive

Additional context The wrench of other mods does not cause this problem, I think it is a problem of GT.

Preta-Crowz commented 2 years ago

In additional, EnU blocks are not rotated right and always set the facing to north. Also, it will sets Rotation from its NBT to 2.

But anyway, wrench will detect it as "rotated" and no longer work unless player tries to rotate it to other direction.

Preta-Crowz commented 2 years ago

debugLog (F3 Debug will always show block as north and it's right. But it returns wrong state.) It seems EnU storage has rotation on property and NBT both.

In additional, EnU blocks are not rotated right and always set the facing to north. Also, it will sets Rotation from its NBT to 2.

But anyway, wrench will detect it as "rotated" and no longer work unless player tries to rotate it to other direction.

Syrcan commented 2 years ago

This looks more of a EnderUtilities problem with Forge wrench, as that's how our Wrench compat has been implemented iirc.