mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-01 23:25:09 +02:00
implement sheep shearing
* 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>
This commit is contained in:
@@ -156,6 +156,7 @@ void handlePacket (int client_fd, int length, int packet_id, int state) {
|
||||
mob_data[i].type, mob_data[i].x, mob_data[i].y, mob_data[i].z,
|
||||
0, 0
|
||||
);
|
||||
broadcastMobMetadata(client_fd, -2 - i);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user