mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 11:07:53 +01:00
Remove Math.max call
This commit is contained in:
parent
c3c139735a
commit
688ab31d79
@ -226,7 +226,7 @@ public final class ViewEngine {
|
|||||||
final Instance instance = trackedLocation.instance();
|
final Instance instance = trackedLocation.instance();
|
||||||
final Point point = trackedLocation.point();
|
final Point point = trackedLocation.point();
|
||||||
|
|
||||||
Int2ObjectOpenHashMap<T> entityMap = new Int2ObjectOpenHashMap<>(Math.max(lastSize, 16));
|
Int2ObjectOpenHashMap<T> entityMap = new Int2ObjectOpenHashMap<>(lastSize);
|
||||||
// Current Instance
|
// Current Instance
|
||||||
for (var reference : instance.getEntityTracker().references(point, range, target)) {
|
for (var reference : instance.getEntityTracker().references(point, range, target)) {
|
||||||
if (reference.isEmpty()) continue;
|
if (reference.isEmpty()) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user