Skip to content

Commit

Permalink
Change spawn reason to natural, so apoth picks up on them
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadows-of-Fire committed May 15, 2021
1 parent 068b246 commit 04c994e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=GatewaysToEternity
author=Shadows_of_Fire
version=1.0.1
version=1.0.2
mcVersion=1.16.4
mappingsVersion=20201028-1.16.3
forgeVersion=35.1.36
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ public void spawnWave() {
if (entity instanceof MobEntity) {
MobEntity mobentity = (MobEntity) entity;

if (this.entity.getNbt().size() == 1 && this.entity.getNbt().contains("id", 8) && !ForgeEventFactory.doSpecialSpawn((MobEntity) entity, world, (float) entity.getPosX(), (float) entity.getPosY(), (float) entity.getPosZ(), null, SpawnReason.MOB_SUMMONED)) {
mobentity.onInitialSpawn((ServerWorld) world, world.getDifficultyForLocation(entity.getPosition()), SpawnReason.MOB_SUMMONED, (ILivingEntityData) null, (CompoundNBT) null);
if (this.entity.getNbt().size() == 1 && this.entity.getNbt().contains("id", 8) && !ForgeEventFactory.doSpecialSpawn((MobEntity) entity, world, (float) entity.getPosX(), (float) entity.getPosY(), (float) entity.getPosZ(), null, SpawnReason.NATURAL)) {
mobentity.onInitialSpawn((ServerWorld) world, world.getDifficultyForLocation(entity.getPosition()), SpawnReason.NATURAL, (ILivingEntityData) null, (CompoundNBT) null);
}
}

Expand Down

0 comments on commit 04c994e

Please sign in to comment.