Skip to content

Commit

Permalink
Merge pull request VolmitSoftware#350 from pazkaI/villager-fix
Browse files Browse the repository at this point in the history
fix villager despawning issue
  • Loading branch information
cyberpwnn authored May 9, 2021
2 parents 48ccbfd + 7fce3bd commit e53fa82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/volmit/iris/object/IrisEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ public void fillInventory(Inventory inventory, Random random, LootContext contex
((Panda) e).setMainGene(getPandaHiddenGene());
}

if (e instanceof Villager) {
((Villager) e).setRemoveWhenFarAway(false);
}

if(Iris.awareEntities && e instanceof Mob)
{
Mob m = (Mob) e;
Expand Down

0 comments on commit e53fa82

Please sign in to comment.