DBot — Сегодня, в 16:11
добавь margin сверху у кнопки массовой покраски или у списка снизу
This commit is contained in:
parent
94e1ce6d8e
commit
608771f441
@ -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>>()
|
||||||
|
|
||||||
|
@ -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())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user