Closed RusTit closed 6 years ago
Finally, you can get drunk =) P.S. it was possible before too, but complicated, because of item disappearing.
https://github.com/ForestryMC/Binnie/blob/6fa570987ac9a73cd6dbb205f06dc8d0de70ca6c/extratrees/src/main/java/binnie/extratrees/items/ItemDrink.java#L49 By the way, it seems to me that this is incorrect (and not convenient). Maybe it should be 64?
I don't think drinking a stack of alcohol is a good idea, holding 1 glass and refilling it from a source of alcohol makes sense to me. :)
Ok =)
Fluid handlers also become more tricky when there is more than 1 item per stack, since you just want to drain one at a time. This code would become a bit more complex.
The current implementation does not work at all. After drinking (actually eating) the item disappeared. I made an implementation based on the ItemFood source code Please check carefully for possible errors.