Handy as the search tips are, maybe we shouldn't show them *everywhere*...
This commit is contained in:
@@ -85,7 +85,8 @@ public class CustomCreativeSearchHandler {
|
|||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void onDrawScreenPostEvent(GuiScreenEvent.DrawScreenEvent.Post event){
|
public static void onDrawScreenPostEvent(GuiScreenEvent.DrawScreenEvent.Post event){
|
||||||
if(currentSearchField != null && DrawingUtils.isPointInRegion(currentSearchField.x, currentSearchField.y, currentSearchField.width, currentSearchField.height, event.getMouseX(), event.getMouseY())){
|
if(event.getGui() instanceof GuiContainerCreative && currentSearchField != null
|
||||||
|
&& DrawingUtils.isPointInRegion(currentSearchField.x, currentSearchField.y, currentSearchField.width, currentSearchField.height, event.getMouseX(), event.getMouseY())){
|
||||||
if(searchBarHoverTime == 0){
|
if(searchBarHoverTime == 0){
|
||||||
searchBarHoverTime++;
|
searchBarHoverTime++;
|
||||||
}else if(searchBarHoverTime == SEARCH_TOOLTIP_HOVER_TIME){
|
}else if(searchBarHoverTime == SEARCH_TOOLTIP_HOVER_TIME){
|
||||||
|
|||||||
Reference in New Issue
Block a user