yeelp / Scaling-Feast

A simple, balanced way to increase your maximum hunger in Minecraft over the course of a world.
MIT License
0 stars 1 forks source link

AppleSkin tooltip isn't correctly drawn over when hunger info box appears above tooltip. #70

Closed yeelp closed 4 years ago

yeelp commented 4 years ago

My initial hypothesis is that there is some if statement going on here that's being done twice. Once by AppleSkin, and once by Scaling Feast.

thisisannoying

yeelp commented 4 years ago

This process is flawed. Instead of drawing over the tooltip with the same, corrected tooltip, we need to dynamically change AppleSkin's recognition of AppleCore on the fly. Something like:

public boolean enableAppleCoreRecognition()

and

public boolean disableAppleCoreRecognition()

should work. We use reflection and get the boolean field in AppleSkin.java that represents AppleCore recognition. Switch it off when drawing tooltips, and on when drawing exhaustion.