mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
Change outdated setPredicate to addPredicate. (#4234)
(cherry picked from commit c9d82ab2d8
)
This commit is contained in:
parent
9aea556b88
commit
e496eb156b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue