mirror of
https://github.com/p2r3/bareiron.git
synced 2025-10-01 23:25:09 +02:00
use negative mob entity ids to avoid conflicts
This commit is contained in:
@@ -118,7 +118,7 @@ void handlePacket (int client_fd, int length, int packet_id, int state) {
|
||||
if (mob_data[i].type == 0) continue;
|
||||
if ((mob_data[i].data & 31) == 0) continue;
|
||||
sc_spawnEntity(
|
||||
client_fd, 65536 + i, recv_buffer,
|
||||
client_fd, -2 - i, recv_buffer,
|
||||
mob_data[i].type, mob_data[i].x, mob_data[i].y, mob_data[i].z,
|
||||
0, 0
|
||||
);
|
||||
|
Reference in New Issue
Block a user