01-21-2016, 10:32 PM
Yeah, something like this:
This way you only have to write down the blocks that can have multiple blockmetas.
-- The list g_MaxMetas = { [E_BLOCK_STAINED_GLASS] = 15, [E_BLOCK_WOOL] = 15, [E_BLOCK_BIG_FLOWER] = 5, ... } -- How to get the max meta: local maxMeta = g_MaxMetas[BlockType] or 0
This way you only have to write down the blocks that can have multiple blockmetas.