Update InteractionFootball.java

This commit is contained in:
brenoepic 2022-04-29 00:27:59 -03:00
parent 376a28dcbd
commit 47afae6a8a

View File

@ -167,7 +167,7 @@ public class InteractionFootball extends InteractionPushable {
BigDecimal topItemHeight = BigDecimal.valueOf(topItem.getZ() + topItem.getBaseItem().getHeight());
BigDecimal ballHeight = BigDecimal.valueOf(this.getZ());
if (topItemHeight.subtract(ballHeight).compareTo(new BigDecimal(1.65)) > 0) {
if (topItemHeight.subtract(ballHeight).compareTo(BigDecimal.valueOf(1.65)) > 0) {
return false;
}