Restore variance
This commit is contained in:
Leo40Git
2021-07-01 15:52:49 +03:00
parent b644d103fa
commit f019deb815
4 changed files with 20 additions and 4 deletions

View File

@@ -25,8 +25,9 @@ import net.minecraft.world.food.FoodProperties;
import java.util.function.Supplier;
public class FoodPropertiesHooksImpl {
@SuppressWarnings("unchecked")
public static void effect(FoodProperties.Builder builder,
Supplier<MobEffectInstance> effectSupplier, float chance) {
builder.effect(effectSupplier, chance);
Supplier<? extends MobEffectInstance> effectSupplier, float chance) {
builder.effect((Supplier<MobEffectInstance>) effectSupplier, chance);
}
}