mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 02:10:30 +01:00
bc3496ea58
It shouldn't cost too much more to check the correct shape, provided that it is cached and we use the overall AABB to collect possible entities to check against. The issues with the old check code is that it will use two getEntitiesOfClass calls plus the addition of streams _and_ the toAabbs() logic on VoxelShape. The new code caches toAabbs, uses one getEntitiesOfClass call, and does not use streams. Then compared to 1.12, we are only performing two additional AABB checks per item. |
||
---|---|---|
.. | ||
api | ||
removed | ||
server |