mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 15:47:17 +08:00
When a ServerEntity instance is first constructed, it uses a pre-Java 9 empty collection, but passengers use Guava ImmutableList. When comparing the two collections via Object#equals we miss out on an opportunity to reduce the check to little more than a reference equality check (which is very fast).