Skip to content
Discussion options

You must be logged in to vote

Ahh, you just want to do new ObjectLuaTable(args.getTable(0));! Really getTable should return a LuaTable directly, but we can't do that without breaking API compat.

getTableUnsafe provides a LuaTable implementation that accesses the underlying table directly. This is useful for high-performance code (e.g. speaker.playAudio), as it allows us to read the table without copying the whole thing. However, it's only safe when used from the Lua thread (hence the Unsafe bit!).

Also, when I am already here, I have a second question related to the sources of CC. [...] Do I somehow need to trick gradle in doing everything right and automatically

Oh, apparently the Forge sources got entirely clobber…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SirEndii
Comment options

@SirEndii
Comment options

@SquidDev
Comment options

Answer selected by SirEndii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants