Advertisement
AqUpd

Untitled

Nov 11th, 2021
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1. // Было:
  2.         BiomeModifications.addSpawn(
  3.                 selection -> selection.getBiome().getCategory() == Biome.Category.SAVANNA,
  4.                 SpawnGroup.CREATURE,
  5.                 CARACAL,
  6.                 weight, mingroup, maxgroup // weight/min group size/max group size
  7.         );
  8. // Стало:
  9.         BiomeModifications.addSpawn(
  10.                 selection -> Arrays.stream(biomelist).anyMatch(x -> x.equals(selection.getBiome().getCategory().getName().toUpperCase())),
  11.                 SpawnGroup.CREATURE,
  12.                 CARACAL,
  13.                 weight, mingroup, maxgroup // weight/min group size/max group size
  14.         );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement