Skip to content

Commit

Permalink
beach villager texture
Browse files Browse the repository at this point in the history
  • Loading branch information
MehVahdJukaar committed Jul 28, 2024
1 parent ed79698 commit c227b73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ private static Block getBaseLogBlockForPos(LevelAccessor level, BlockPos pos) {
Holder<Biome> biome = level.getBiome(pos);
List<Block> matched = new ArrayList<>();

for (TagKey<Biome> tag : FallenLogsModule.blocksPerTag.keySet())
if (biome.is(tag))
matched.add(FallenLogsModule.blocksPerTag.get(tag));
for (var e : FallenLogsModule.blocksPerTag.entrySet())
if (biome.is(e.getKey()))
matched.add(e.getValue());

if (matched.size() == 0)
if (matched.isEmpty())
return Blocks.AIR;

return matched.get(level.getRandom().nextInt(matched.size()));
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c227b73

Please sign in to comment.