Get light from chunk
#2
I don't think that's the right way around this. We have a "GetBlock" function that retrieves the block type and meta (which is what really comprises the block). the light doesn't comprise a block, it's something external. I'd recommend making an extra "UnboundedRelGetBlockBlockLight()" and "UnboundedRelGetBlockSkyLight()" functions for retrieving the light.
If, for performance reason, you believe getting the type, meta and light all together would be beneficial, then make another function, "UnboundedRelGetBlockFull()".

Also keep in mind that these functions make it into the Lua API.
Reply
Thanks given by:


Messages In This Thread
Get light from chunk - by mgueydan - 09-08-2013, 09:08 PM
RE: Get light from chunk - by xoft - 09-09-2013, 01:02 AM
RE: Get light from chunk - by mgueydan - 09-11-2013, 01:08 AM
RE: Get light from chunk - by xoft - 09-11-2013, 01:24 AM
RE: Get light from chunk - by mgueydan - 09-11-2013, 02:02 AM
RE: Get light from chunk - by xoft - 09-11-2013, 03:54 PM



Users browsing this thread: 2 Guest(s)