Skip to content

Conversation

@armele
Copy link

@armele armele commented Jan 22, 2026

Closes #813

Changes proposed in this pull request

Testing

  • Yes I tested this before submitting it.
  • I also did a multiplayer test.

I was able to reproduce the crash and confirm that after the fix it was eliminated.
I did a number of other tests using the TagSubstitutionBlock. I did note that if the TSB is put on a chest that the rotation of the chest was NOT correctly reflected (the position was, but not the facing). I did confirm that contents were persisted as well.

After a number of attempts to explore fixes, I decided to submit this small improvement (no crash) despite the lack of proper chest orientation post-rotation.

Review please

@CLAassistant
Copy link

CLAassistant commented Jan 22, 2026

CLA assistant check
All committers have signed the CLA.

}

// If the rotated state cannot host a BE, drop any BE tag (prevents renderer/loader issues).
if (!rotatedState.hasBlockEntity())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it happen that we get serializedBE not empty but it has no block entity?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I saw when debugging was that for this specific decoration the block entity was reported as "present but blank" - showed up as "{}" when dumping the logs. Not sure how that comes about... but wanted to guard against it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants