CropGrowth event not taking effect as intended
someaddons opened this issue ยท 1 comments
Quick description
You're checking if the event is cancelled here
but that event cannot be canceled and instead uses the event result
event.setResult(Event.Result.DENY);
so you need to check the event result after posting it on the bus, similar to how forge does it:
Related issues and searches
Mods and versions used
- Minecraft:1.16.5
- AgriCraft:agricraft-3.0.7
- InfinityLib:Infinitylib-2.0.7
- [List the other required mods here]
Steps to replicate the issue
- Loaded up
...
- Placed a
...
- Right-clicked with
...
on...
Expectations and explanations
Your environment
- How are you playing?
- Operating System:
- Launcher:
- Modpack:
- What kind of server:
- Singleplayer
- Multiplayer
- Game Modes:
- Survival
- Creative
- Save File:
- Brand new save
- Only an existing save
Links to crash logs, stack traces, etc
- https://gist.github.com/
- https://paste.ee/
- https://duckduckgo.com/?q=pastebin+alternatives
- Upload them somewhere, and then replace these links.