Merge pull request #350 from pazkaI/villager-fix

fix villager despawning issue
This commit is contained in:
Dan 2021-05-09 09:58:58 -08:00 committed by GitHub
commit e53fa82c46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,6 +264,10 @@ public class IrisEntity extends IrisRegistrant
((Panda) e).setMainGene(getPandaHiddenGene());
}
if (e instanceof Villager) {
((Villager) e).setRemoveWhenFarAway(false);
}
if(Iris.awareEntities && e instanceof Mob)
{
Mob m = (Mob) e;