GuiColorPicker#hoveringPicker only returns true if the GuiElement is enabled
This commit is contained in:
@@ -135,7 +135,8 @@ public class GuiColorPicker extends GuiAdvancedButton implements GuiOverlayEleme
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean hoveringPicker(int mouseX, int mouseY) {
|
public boolean hoveringPicker(int mouseX, int mouseY) {
|
||||||
return mouseX >= pickerX
|
return enabled
|
||||||
|
&& mouseX >= pickerX
|
||||||
&& mouseY >= pickerY
|
&& mouseY >= pickerY
|
||||||
&& mouseX <= pickerX+PICKER_SIZE
|
&& mouseX <= pickerX+PICKER_SIZE
|
||||||
&& mouseY <= pickerY+PICKER_SIZE;
|
&& mouseY <= pickerY+PICKER_SIZE;
|
||||||
|
|||||||
Reference in New Issue
Block a user