Core: Allow more bot IDs before resorting to self.

This commit is contained in:
UnknownShadow200 2016-10-21 19:13:52 +11:00
parent 0eeed407b6
commit 6ac94cd612

View File

@ -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;
}