The Aether

The Aether

32M Downloads

Bug: Ambroium shards cannot be eaten in creative mode if the Edible Ambrosium configuration option is set to true.

Zepalesque opened this issue ยท 0 comments

commented

What Feature Types Apply to This Bug?

Config

Other Type

No response

What Type of Bug Is This?

Unexpected Behavior

Forge Version

1.18.2-40.1.51

The Aether 1 Version

Commit 19f12d1 (also affects 1.19, b5651e7)

Is This Bug a Conflict With Another Mod?

No response

Client Log

No response

Crash Report (if applicable)

No response

Steps to Reproduce

  1. In /config/aether-common.toml, set "Ambrosium Shards are edible" to true.
  2. Open a world in creative mode, and get an Ambrosium Shard from your inventory, and put it in your hand.
  3. Hold down right-click (or whatever your Use Item/Place Block keybind is set to)

What You Expect To Happen

I expected the Ambrosium Shard to get eaten.

What Actually Happened

Nothing happened, the Ambrosium Shard did not play the eating animation or sound, and made no particles.

Additional Details

A way to fix this is by changing AmbrosiumShardItem.java, line 49 from
if (playerIn.getHealth() < playerIn.getMaxHealth() && !playerIn.isCreative()) {
to
if (playerIn.getHealth() < playerIn.getMaxHealth() || playerIn.isCreative()) {

and line 62 (same file) from
if (AetherConfig.COMMON.edible_ambrosium.get()) {
to
if (AetherConfig.COMMON.edible_ambrosium.get() && !playerIn.isCreative()) {

Please Read and Confirm The Following

  • I have confirmed this bug can be replicated without the use of Optifine.
  • I have confirmed this bug is on the most recently supported version of Minecraft.
  • I have confirmed the details provided in this report are concise as possible and does not contained vague information (ie. Versions are properly recorded, answers to questions are clear).
  • I have confirmed this issue is unique and has not been reported already.