Merge pull request #7869 from deathbeam/cooking-normalize

Use default PanelComponent size in Cooking plugin
This commit is contained in:
Tomas Slusny
2019-02-16 04:56:01 +00:00
committed by GitHub

View File

@@ -78,7 +78,6 @@ class CookingOverlay extends Overlay
return null; return null;
} }
panelComponent.setPreferredSize(new Dimension(145, 0));
panelComponent.getChildren().clear(); panelComponent.getChildren().clear();
if (isCooking() || Duration.between(session.getLastCookingAction(), Instant.now()).getSeconds() < COOK_TIMEOUT) if (isCooking() || Duration.between(session.getLastCookingAction(), Instant.now()).getSeconds() < COOK_TIMEOUT)