[Fixes] Disabling end entities result in crashes (by Necrontyrr)
Merge pull request #112 from Necrontyrr/disable-spawn
This commit is contained in:
commit
d15d2e86ae
7 changed files with 27 additions and 27 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue