TFC alcohols and waters can be bottled into vanilla water.
UnlimatedStone9 opened this issue ยท 2 comments
Describe the bug
- What did you expect to happen?
Glass bottle to not fill. - What actually happened instead (i.e. what was the bug)
Vanilla glass bottles can be filled with liquid:water when clicking any of the TFC water types (limewater, hotwater, saltwater, freshwater), and any of the TFC alcohol types (rum, beer, whiskey, etc...).
To Reproduce
- Click a fluid from TFC with a glass bottle.
- Scream in horror!
Meta Info
- TFC Version: 1.12.2-0.24.1.78
After looking into this, this is caused by the vanilla water bottle just doing a Material.WATER
check - we'd probably need to registry replace or hook this via right click event (i.e. override default behavior with a custom IRightClickBlockAction
I'd like to work on this. I have dumb question since I'm new here and maybe missing something. I'm looking into hook approach.
So. InteractionManager.onRightClickItem
cancelling events if we have handler for it. Does it mean TFC may discard hooks from other mods for this event, which is not compatibility friendly?