fix compilation issues

This commit is contained in:
granny
2025-01-12 17:30:46 +00:00
committed by granny
parent 2988b69e0e
commit ab27287ecb
7 changed files with 37 additions and 37 deletions

View File

@@ -39,14 +39,14 @@
@Override
public boolean canMate(Animal otherAnimal) {
- return false;
+ return super.canMate(other); // Purpur - Breedable parrots
+ return super.canMate(otherAnimal); // Purpur - Breedable parrots
}
@Nullable
@Override
public AgeableMob getBreedOffspring(ServerLevel level, AgeableMob otherParent) {
- return null;
+ return world.purpurConfig.parrotBreedable ? EntityType.PARROT.create(world, EntitySpawnReason.BREEDING) : null; // Purpur - Breedable parrots
+ return level.purpurConfig.parrotBreedable ? EntityType.PARROT.create(level, EntitySpawnReason.BREEDING) : null; // Purpur - Breedable parrots
}
@Nullable