Skip to content

Commit

Permalink
Fix #1255
Browse files Browse the repository at this point in the history
  • Loading branch information
maxanier committed Aug 28, 2023
1 parent bcb05ae commit 14470a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ public SpawnGroupData finalizeSpawn(@NotNull ServerLevelAccessor worldIn, @NotNu
if (!(reason == MobSpawnType.SPAWN_EGG || reason == MobSpawnType.BUCKET || reason == MobSpawnType.CONVERSION || reason == MobSpawnType.COMMAND) && this.getRandom().nextInt(50) == 0) {
this.setItemSlot(EquipmentSlot.HEAD, HunterVillage.createBanner());
}
getEntityData().set(TYPE, this.getRandom().nextInt(TYPES));

SpawnGroupData livingData = super.finalizeSpawn(worldIn, difficultyIn, reason, spawnDataIn, dataTag);

if (this.getRandom().nextInt(4) == 0) {
Expand Down

0 comments on commit 14470a9

Please sign in to comment.