Improved hitboxes, added Timer check, organized checks

This commit is contained in:
Dawson
2022-08-23 11:56:32 -04:00
parent 49391bfea9
commit bc64f0a6ae
12 changed files with 148 additions and 25 deletions
@@ -57,8 +57,18 @@ public class EntityLocationHandler {
}
entityLocationMap.values().forEach(eloc -> {
if(eloc.one != null) eloc.one.interpolateLocation();
if(eloc.two != null) eloc.two.interpolateLocation();
if(eloc.one != null) {
eloc.one.interpolateLocation();
if(streak > 2 && eloc.one.interpolatedLocations.size() > 1) {
eloc.one.interpolatedLocations.removeFirst();
}
}
if(eloc.two != null) {
eloc.two.interpolateLocation();
if(streak > 2 && eloc.two.interpolatedLocations.size() > 1) {
eloc.two.interpolatedLocations.removeFirst();
}
}
});
lastFlying.reset();