* Added shearing sheeps
* Added empty line
* Changed comment in MobData to say what the middle 1 bit is used for
* Replaced if statements with a switch statement and early returns
* Send mob metadata to players that join
* Fixed mob metadata getting freed when exiting the switch statement
* remove currently unnecessary check
* use bitwise and in place of modulo
* style nitpicks
---------
Co-authored-by: p2r3 <p2r3@p2r3.com>
* Added sending player metadata with poses to everyone
* Renamed sendPlayerMetadataToAll to broadcastPlayerMetadata
* Made entity metadata system flexible
* Made broadcastPlayerMetadata create new metadata instead of using a global one
* Moved writeEntityData, sizeEntityData and sizeEntityMetadata to procedures
* style nitpicks
---------
Co-authored-by: p2r3 <p2r3@p2r3.com>
* Added cactus damage for players and issues the respective death message.
Halts if condition is reached
* style nitpicks
---------
Co-authored-by: p2r3 <p2r3@p2r3.com>
* send server brand to client
* send brand regardless of `0x02` being recieved by server or not
* send brand regardless of `0x02` being recieved by server or not
+ if statement to match previous lines
* ifdef check for brand sending
* commit main.c for ifdef check (i forgot)
* commit main.c for ifdef check (i forgot)
* change sc_pluginMessage to sc_sendPluginMessage
- added params to it for use in other cases
- other changes to fit PR reviews
* revert .gitignore
* revert unrelated changes
* send byte instead of varint for constant packet id
* gate declaration of brand string behind ifdef
* make logging consistent with codebase
---------
Co-authored-by: p2r3 <p2r3@p2r3.com>
pragma pack (push, 1) forces alignment to 1-byte.
While reordering the fields does help with memory accesses, it only
works if the compiler can ensure 2-byte alignments for this struct.