More Ores Armors and Tools

More Ores Armors and Tools

81.3k Downloads

Suggestion for OreGeneration

Tasaddar12 opened this issue ยท 0 comments

commented

There are numerous if statements checking the same condition. This can be changed to a single if statement.

if(!(event.getCategory().equals(Biome.Category.NETHER) || event.getCategory().equals(Biome.Category.THEEND))) { generateOre(event.getGeneration(), OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, BlockInit.TIN_ORE.get().getDefaultState(), 14, 0, 90, 22); generateOre(event.getGeneration(), OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, BlockInit.COPPER_ORE.get().getDefaultState(), 14, 0, 90, 22); generateOre(event.getGeneration(), OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, BlockInit.SILVER_ORE.get().getDefaultState(), 13, 0, 45, 2); generateOre(event.getGeneration(), OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, BlockInit.LEAD_ORE.get().getDefaultState(), 11, 0, 30, 1); generateOre(event.getGeneration(), OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, BlockInit.PLATINUM_ORE.get().getDefaultState(), 11, 0, 30, 1); }