DBot — Сегодня, в 16:11

добавь margin сверху у кнопки массовой покраски
или у списка снизу
This commit is contained in:
YuRaNnNzZZ 2023-10-30 16:53:21 +03:00
parent 94e1ce6d8e
commit 608771f441
Signed by: YuRaNnNzZZ
GPG Key ID: 5F71738C85A6006D
2 changed files with 1 additions and 1 deletions

View File

@ -123,6 +123,7 @@ class PainterScreen(menu: PainterMenu, inventory: Inventory, title: Component) :
val canvas = ScrollableCanvasPanel(this, column) val canvas = ScrollableCanvasPanel(this, column)
canvas.dock = Dock.FILL canvas.dock = Dock.FILL
canvas.dockPaddingBottom = 4f
val buttons = ArrayList<RectangleButtonPanel<PainterScreen>>() val buttons = ArrayList<RectangleButtonPanel<PainterScreen>>()

View File

@ -140,7 +140,6 @@ class PainterMenu(
if (inputContainer.isEmpty || selectedRecipe == null) { if (inputContainer.isEmpty || selectedRecipe == null) {
outputContainer.clearContent() outputContainer.clearContent()
} else { } else {
// val recipe = inventory.player.level().recipeManager.byType(MRecipes.PAINTER)[selectedRecipe]
val recipe = inventory.player.level().recipeManager.byKey(selectedRecipe).get() as RecipeHolder<AbstractPainterRecipe>? val recipe = inventory.player.level().recipeManager.byKey(selectedRecipe).get() as RecipeHolder<AbstractPainterRecipe>?
if (recipe == null || !recipe.value.canCraft(dyeStoredDirect) || !recipe.value.matches(inputContainer, inventory.player.level())) { if (recipe == null || !recipe.value.canCraft(dyeStoredDirect) || !recipe.value.matches(inputContainer, inventory.player.level())) {