Skip to content

Commit

Permalink
Maybe the koas wont actually despawn now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corosauce committed Nov 2, 2023
1 parent 5698cd6 commit 2eef52f
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class RaveKoaEntity extends PathfinderMob {

public RaveKoaEntity(EntityType<? extends RaveKoaEntity> type, Level world) {
super(type, world);
this.setPersistenceRequired();
}

@Override
Expand Down Expand Up @@ -55,6 +54,17 @@ public static AttributeSupplier.Builder createAttributes() {
@Nullable
@Override
public SpawnGroupData finalizeSpawn(ServerLevelAccessor pLevel, DifficultyInstance pDifficulty, MobSpawnType pReason, @Nullable SpawnGroupData pSpawnData, @Nullable CompoundTag pDataTag) {
this.setPersistenceRequired();
return super.finalizeSpawn(pLevel, pDifficulty, pReason, pSpawnData, pDataTag);
}

@Override
protected boolean shouldDespawnInPeaceful() {
return false;
}

@Override
public void checkDespawn() {
//NO OP
}
}

0 comments on commit 2eef52f

Please sign in to comment.