Use default PanelComponent size in Cooking plugin

So it is consistent with rest of plugins, mainly session ones.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-02-15 21:04:22 +01:00
parent ecfc8276b5
commit 8f1ef00c39

View File

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