[Fixes] Disabling end entities result in crashes (by Necrontyrr)

Merge pull request #112 from Necrontyrr/disable-spawn
This commit is contained in:
Frank 2022-11-18 19:24:59 +01:00 committed by GitHub
commit d15d2e86ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 27 deletions

View file

@ -209,6 +209,6 @@ public class DragonflyEntity extends DespawnableAnimal implements FlyingAnimal {
@Override
public AgeableMob getBreedOffspring(ServerLevel world, AgeableMob entity) {
return EndEntities.DRAGONFLY.create(world);
return EndEntities.DRAGONFLY.type().create(world);
}
}

View file

@ -155,7 +155,7 @@ public class SilkMothEntity extends DespawnableAnimal implements FlyingAnimal {
@Override
public AgeableMob getBreedOffspring(ServerLevel world, AgeableMob entity) {
return EndEntities.SILK_MOTH.create(world);
return EndEntities.SILK_MOTH.type().create(world);
}
@Override