Skip to content

Commit

Permalink
Fixed Desert Wolfs not spawning
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Aug 27, 2020
1 parent 8bd5148 commit aac2e7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
minecraft_version=1.15.2
forge_version=31.2.27
mappings=20200621-1.15.1
mod_version=2.1.5
mod_version=2.1.6
jei_version=6.0.2.6
hwyla_version=1.10.8-B72
ct_version=6.0.0.30
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected void registerData() {
}

public static boolean canSpawn(EntityType<? extends DesertWolfEntity> animal, IWorld world, SpawnReason spawnReason, BlockPos pos, Random random) {
return pos.getY() > 62 && !world.getWorld().getGameRules().getBoolean(GameRules.DO_MOB_SPAWNING) && world.canBlockSeeSky(pos) && AtumEntities.canAnimalSpawn(animal, world, spawnReason, pos, random);
return pos.getY() > 62 && world.getWorld().getGameRules().getBoolean(GameRules.DO_MOB_SPAWNING) && world.canBlockSeeSky(pos) && AtumEntities.canAnimalSpawn(animal, world, spawnReason, pos, random);
}

@Override
Expand Down

0 comments on commit aac2e7d

Please sign in to comment.