You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ender air bottling logic is implemented via UseItemCallback.EVENT.register(EnderAirItem::onPlayerInteract);. It returns sucess() if the player is in the End and no dragon breath would be picked up.
Returning pass at this stage will skip any bottle on block interaction, since the interaction has already been handled, preventing players to interact with blocks using a bottle in the end (like bottling fluids).
A suggested fix would be to only collect Ender Air is the player is not targeting a block, while otherwise calling pass().
Steps to reproduce
Go to the End
Right Click with a bottle anywhere that is not near dragon's breath (in the air, on water, on stone, ...)
You get Ender Air
Other information
No response
The text was updated successfully, but these errors were encountered:
Issue also exists on Forge. However, on both platforms it only applies to bottling water. Interaction with e.g. bee hives works fine since that's a separate event that fires before Botania's ender air pickup attempt.
Might be a relatively simple fix by also checking whether the player targets a fluid.
…MISS)
Some mods add features that rely on using empty Glass Bottles on *blocks*, not just fluids.
This commit allows that to happen by only creating Ender Air Bottles when the player is aiming at *nothing* - not a block *or* a fluid (instead of only checking for fluids)
FixesVazkiiMods#4273
Signed-off-by: unilock <[email protected]>
Mod Loader
Fabric
Minecraft Version
1.19.2
Botania version
1.19.2-436
Modloader version
Any
Modpack info
No response
The latest.log file
Issue description
The ender air bottling logic is implemented via
UseItemCallback.EVENT.register(EnderAirItem::onPlayerInteract);
. It returns sucess() if the player is in the End and no dragon breath would be picked up.Returning pass at this stage will skip any bottle on block interaction, since the interaction has already been handled, preventing players to interact with blocks using a bottle in the end (like bottling fluids).
A suggested fix would be to only collect Ender Air is the player is not targeting a block, while otherwise calling
pass()
.Steps to reproduce
Other information
No response
The text was updated successfully, but these errors were encountered: