cipher encryption is useless, we legit have the source code, someone can just add cheats to the game or hook into where the client decodes / encodes the packets, its just useless performance overhead rn
* Replace byte cast with int8_t in Tesselator::normal()
* 4J calls this function with -1.0f as the first parameter sometimes, the previous cast caused it to become 0x00 and broke the shading in the inventory
* It was done a similar way on Vita, i just kanged it and made it more C++
* Overhall the culling algorithm entirely
* Instead of testing the AABB's 8 vertices against each of the 6 frustum planes, the new implementation will select the AABB corner most likely to be outside of the plane using the plane's sign
* the selected corner is determined using the lookup table (K_CORNER_LUT) to avoid the 8 explicit plane evaluations
* Plane sign masks are pre-computed once per frame and reused when testing AABB
* And it is mostly useful by reducing the worst case number of plane evaluation from 48 per AABB to just 6 !
(This PR fixes [this issue](https://discord.com/channels/1482443865754701868/1534141325904183336) from the Discord server: )
Previously, when holding a piece of armor and right-clicking an interactable block (furnance, crafting table, levers, etc.) the armor would be equipped to the player.
This isn't the expected behavior. The interacted block should suppress any held item functionality (if not crouched)
This PR adds the "bool blockHandled" variable to the "handleUseItem" function. If the player interact with an interactable block, the variable is set to true.
This variable can be used for future packets added in this function
Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/168
Co-authored-by: ACL <puffymono@gmail.com>
Co-committed-by: ACL <puffymono@gmail.com>
Thrown eggs used snowball particles when hitting a block, there wasn't any code for the correct particles either.
I added the new egg particles and assigned them to the thrown egg entity.
Before:

Now:

Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/167
Co-authored-by: ACL <puffymono@gmail.com>
Co-committed-by: ACL <puffymono@gmail.com>