Skip to content

Commit

Permalink
build: update to forge 40.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Apr 24, 2022
1 parent 2327dfd commit 4dd5580
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -10,7 +10,7 @@ Shared library for AH's Minecraft mods.
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/auioc/arnicalib-mcmod/dev-build?label=dev%20build&style=flat-square)](https://github.com/auioc/arnicalib-mcmod/actions/workflows/dev-build.yml)
<br/>
![Minecraft](https://img.shields.io/static/v1?label=Minecraft&message=1.18.2&color=00aa00&style=flat-square)
[![Forge](https://img.shields.io/static/v1?label=Forge&message=40.0.44&color=e04e14&logo=Conda-Forge&style=flat-square)](http://files.minecraftforge.net/net/minecraftforge/forge/index_1.18.2.html)
[![Forge](https://img.shields.io/static/v1?label=Forge&message=40.1.0&color=e04e14&logo=Conda-Forge&style=flat-square)](http://files.minecraftforge.net/net/minecraftforge/forge/index_1.18.2.html)
[![AdoptiumOpenJDK](https://img.shields.io/static/v1?label=AdoptiumOpenJDK&message=17.0.2%2B8&color=brightgreen&logo=java&style=flat-square)](https://adoptium.net)
[![Gradle](https://img.shields.io/static/v1?label=Gradle&message=7.3&color=brightgreen&logo=gradle&style=flat-square)](https://docs.gradle.org/7.3/release-notes.html)

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx4G -Dhttps://maven.minecraftforge.net/=false
org.gradle.daemon=false

minecraft_version=1.18.2
forge_version=40.0.44
forge_version=40.1.0

mappings_channel=official
mappings_version=1.18.2
Expand Down
Expand Up @@ -27,7 +27,7 @@ private void addEatEffect(ItemStack stack, Level level, LivingEntity entity) {
if (!level.isClientSide() && stack.isEdible()) {
List<MobEffectInstance> effects = new ArrayList<>();

for (Pair<MobEffectInstance, Float> pair : stack.getItem().getFoodProperties().getEffects()) {
for (Pair<MobEffectInstance, Float> pair : stack.getItem().getFoodProperties(stack, entity).getEffects()) {
if (pair.getFirst() != null && level.random.nextFloat() < pair.getSecond()) {
effects.add(new MobEffectInstance(pair.getFirst()));
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Expand Up @@ -18,7 +18,7 @@ Shared library for AH's Minecraft mods.
[[dependencies.arnicalib]]
modId="forge"
mandatory=true
versionRange="[40.0.35,)"
versionRange="[40.1.0,)"
ordering="NONE"
side="BOTH"
[[dependencies.arnicalib]]
Expand Down

0 comments on commit 4dd5580

Please sign in to comment.