mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-25 06:04:46 -04:00
Core: Allow more bot IDs before resorting to self.
This commit is contained in:
parent
0eeed407b6
commit
6ac94cd612
@ -197,6 +197,10 @@ namespace MCGalaxy {
|
||||
for (byte i = 127; i >= 64; i-- ) {
|
||||
if (used[i] == 0) return i;
|
||||
}
|
||||
// NOTE: For some clients these IDs mean self ID
|
||||
for (byte i = 254; i > 127; i-- ) {
|
||||
if (used[i] == 0) return i;
|
||||
}
|
||||
return Entities.SelfID;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user