Skip to content

Clean up empty NBT when clearing projector channels - #75

Merged
Glease merged 2 commits into
GTNewHorizons:masterfrom
Chitak985:patch-1
Sep 20, 2026
Merged

Glease merged 2 commits into
GTNewHorizons:masterfrom
Chitak985:patch-1

Conversation

@Chitak985

@Chitak985 Chitak985 commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes GTNewHorizons/GT-New-Horizons-Modpack#26755

Clearing all subchannels with wipeChannelData removed the channels tag but left an empty root NBT compound on the hologram projector. Because freshly crafted projectors have no NBT compound, the cleared projectors would no longer stack with them. This PR nulls the NBT if there are no channels left, making it stackable again.

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@Glease
Glease merged commit 89057eb into GTNewHorizons:master Sep 20, 2026
1 check passed
@Chitak985
Chitak985 deleted the patch-1 branch September 20, 2026 01:57
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.

Multiblock Structure Hologram Projector: clearing subchannels does not clear nbt of projector

2 participants