Skip to content

Commit

Permalink
Missed one
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerS1066 committed Sep 5, 2024
1 parent 1afdc1a commit 4ba2f8e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ public void doUpdate() {
//Valid exterior starts as the 6 surface planes of the HitBox with the locations that lie in the HitBox removed
final SetHitBox validExterior = new SetHitBox();
for (HitBox hitBox : surfaces) {
validExterior.addAll(hitBox.difference(craft.getHitBox()));
validExterior.addAll(Sets.difference(hitBox.asSet(),craft.getHitBox().asSet()));
}

//Check to see which locations in the from set are actually outside of the craft
SetHitBox visited = new SetHitBox();
for (MovecraftLocation location : validExterior) {
Expand Down

0 comments on commit 4ba2f8e

Please sign in to comment.