mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 11:20:55 -04:00
Change outdated setPredicate to addPredicate. (#4234)
This commit is contained in:
parent
5197d62800
commit
c9d82ab2d8
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