Change outdated setPredicate to addPredicate. ()

(cherry picked from commit c9d82ab2d8)
This commit is contained in:
fishshi 2024-11-19 02:07:45 +08:00 committed by modmuss50
parent 9aea556b88
commit e496eb156b

View file

@ -46,7 +46,7 @@ public final class EntitySelectorOptionRegistry {
* final float minHealth = reader.getReader().readFloat();
*
* if (minHealth > 0) {
* reader.setPredicate((entity) -> entity instanceof LivingEntity livingEntity && livingEntity.getHealth() >= minHealth);
* reader.addPredicate((entity) -> entity instanceof LivingEntity livingEntity && livingEntity.getHealth() >= minHealth);
* }
* },
* (reader) -> true