Skip to content

Commit

Permalink
Only include boats and minecarts in the vehicle category
Browse files Browse the repository at this point in the history
I think most people wouldn't expect this to include horses, pigs, striders, etc.
  • Loading branch information
froobynooby committed Apr 20, 2024
1 parent d132e78 commit 7ea7cb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static Predicate<SnapshotEntity> fromString(String string) {
case "tameable" -> {return entity -> Tameable.class.isAssignableFrom(entity.getEntityClass());}
case "raider" -> {return entity -> Raider.class.isAssignableFrom(entity.getEntityClass());}
case "mob" -> {return entity -> Mob.class.isAssignableFrom(entity.getEntityClass());}
case "vehicle" -> {return entity -> Vehicle.class.isAssignableFrom(entity.getEntityClass());}
case "vehicle" -> {return entity -> Boat.class.isAssignableFrom(entity.getEntityClass()) || Minecart.class.isAssignableFrom(entity.getEntityClass());}
case "projectile" -> {return entity -> Projectile.class.isAssignableFrom(entity.getEntityClass());}
}
}
Expand Down

0 comments on commit 7ea7cb6

Please sign in to comment.