Skip to content

Conversation

@zyf051520
Copy link

@zyf051520 zyf051520 commented Dec 17, 2025

GTNH OC config allow player to get the NBT tag of itemstack, but in gzip format.
It's possible to decode gzip format in pure lua (https://github.com/MikuAuahDark/lua-nbt), so this PR does not add new ability to OC.
This PR add such function to Data Card, in hope of better performance than pure lua.

It's OK to return NBTTagCompund in lua callback, OC will convert it to lua table(see https://github.com/GTNewHorizons/OpenComputers/blob/master/src/main/scala/li/cil/oc/integration/vanilla/ConverterNBT.scala).
2025-12-17_19 58 59

@Dream-Master Dream-Master added the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Dec 18, 2025
@Dream-Master Dream-Master merged commit 1dc4f46 into GTNewHorizons:master Dec 19, 2025
1 check passed
@Dream-Master Dream-Master removed the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Dec 19, 2025
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