Remove Math.max call

This commit is contained in:
themode 2022-02-18 16:52:33 +01:00
parent c3c139735a
commit 688ab31d79

View File

@ -226,7 +226,7 @@ public final class ViewEngine {
final Instance instance = trackedLocation.instance();
final Point point = trackedLocation.point();
Int2ObjectOpenHashMap<T> entityMap = new Int2ObjectOpenHashMap<>(Math.max(lastSize, 16));
Int2ObjectOpenHashMap<T> entityMap = new Int2ObjectOpenHashMap<>(lastSize);
// Current Instance
for (var reference : instance.getEntityTracker().references(point, range, target)) {
if (reference.isEmpty()) continue;