A little more refactor

This commit is contained in:
Aleksey 2021-04-17 11:57:31 +03:00
parent 2b19382e88
commit 04e03cac07
3 changed files with 7 additions and 8 deletions

View file

@ -18,11 +18,11 @@ import ru.betterend.interfaces.IBiomeList;
@Mixin(value = WeightedBiomePicker.class, remap = false)
public class WeightedBiomePickerMixin implements IBiomeList {
private List<ResourceKey<Biome>> biomes = Lists.newArrayList();
private final List<ResourceKey<Biome>> biomes = Lists.newArrayList();
@Inject(method = "addBiome", at = @At("TAIL"))
private void be_addBiome(final ResourceKey<Biome> biome, final double weight, CallbackInfo info) {
if (be_isCorrectPicker((WeightedBiomePicker) (Object) this)) {
if (be_isCorrectPicker(WeightedBiomePicker.class.cast(this))) {
biomes.add(biome);
}
}