[1.20][Forge] Incompatibility with Spice of Life Onion
CreativeMD opened this issue ยท 8 comments
Hey there,
I'm the author of Spice of Life Onion and someone has reported an issue with origins. My mod adds food bags, if you eat the bag it will consume an item it contains. Somehow this behavior does not work if origins is installed (CreativeMD/Spice-of-Life-Onion#5). Do you have an idea what could possibly cause this issue?
In Regards
CreativeMD
- Does this work with an origin without a dietary restriction (Vegetarian on Avian, Carnivore on Arachnid)
- You'll want to add this item to the
origins:ignore_diet
tag. - If you wish to go the extra mile for Origins compat, you might want to make sure that the item is edible by checking prevent item use powers. An example of how you can do this is here.
https://github.com/EdwinMindcraft/apoli/blob/1.18.x/1.18.2/src/main/java/io/github/edwinmindcraft/apoli/common/ApoliPowerEventHandler.java#L366
Sorry for the late response, I've been trying to pace myself with maintaining this mod.
Hey thanks for taking care. Unfortunately adding the item to the origins:ignore_diet
tag did not help (or I did something wrong, I have never added something to another mod's tags). Commit can be found here: CreativeMD/Spice-of-Life-Onion@ad656c7
Hey thanks for taking care. Unfortunately adding the item to the
origins:ignore_diet
tag did not help (or I did something wrong, I have never added something to another mod's tags). Commit can be found here: CreativeMD/Spice-of-Life-Onion@ad656c7
I must've got the tag wrong.
@CreativeMD Hi, you'll need to invert your isUsagePrevented
check in OriginsManager. I'll make a PR on your end to fix this.
CreativeMD/Spice-of-Life-Onion#21
I have tested this with Origins Forge, and it should now work as intended.