GuiColorPicker#hoveringPicker only returns true if the GuiElement is enabled

This commit is contained in:
CrushedPixel
2015-07-19 13:07:55 +02:00
parent 51814e143b
commit 5087de8cd5

View File

@@ -135,7 +135,8 @@ public class GuiColorPicker extends GuiAdvancedButton implements GuiOverlayEleme
}
public boolean hoveringPicker(int mouseX, int mouseY) {
return mouseX >= pickerX
return enabled
&& mouseX >= pickerX
&& mouseY >= pickerY
&& mouseX <= pickerX+PICKER_SIZE
&& mouseY <= pickerY+PICKER_SIZE;