Skip to content

Update ModularUI#434

Merged
bqc0n merged 8 commits intodevelopfrom
feat-update-modularui
Mar 20, 2026
Merged

Update ModularUI#434
bqc0n merged 8 commits intodevelopfrom
feat-update-modularui

Conversation

@bqc0n
Copy link
Member

@bqc0n bqc0n commented Mar 20, 2026

What

  • ModularUI 3.1.5 で発生しているクラッシュの修正
  • 非推奨メソッドの置き換え

Implementation Details

今回のクラッシュは、3.1.5でWidgetgetCurrentBackgroundメソッドのシグネチャが変わったことにより発生していた。
ButtonTogleableでそのメソッドをoverrideしていたため、シグネチャを合わせた。

@bqc0n bqc0n requested review from Copilot and soramame0256 March 20, 2026 08:23
@bqc0n bqc0n added bug Something isn't working feature New feature or request and removed bug Something isn't working labels Mar 20, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

ModularUI を 3.1.5 に更新し、3.1.5 での Widget#getCurrentBackground シグネチャ変更に起因するクラッシュを解消しつつ、UI 周りの非推奨 API(Column/Rowalign/alignment 等)を新 API に置き換える PR です。

Changes:

  • ModularUI 依存を 3.1.43.1.5 に更新
  • ButtonToggleable#getCurrentBackground の override シグネチャを 3.1.5 に合わせてクラッシュを修正
  • 画面レイアウト/テキスト配置/プログレス同期の非推奨 API を Flow.* / center|right|bottom|textAlign|syncHandler へ移行

Reviewed changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/main/kotlin/io/github/trcdevelopers/clayium/integration/modularui/ItemSlotBuilder.kt align(Alignment.Center)center() に置換
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/multiblock/RedstoneProxyMetaTileEntity.kt CycleButton の中央寄せ API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/multiblock/CaReactorMetaTileEntity.kt align/alignment を位置指定 + textAlign に移行
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/WaterwheelMetaTileEntity.kt ColumnFlow.column、各種 align を位置指定に置換
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/VoidContainerMetaTileEntity.kt スロットの中央寄せ API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/StorageContainerMetaTileEntity.kt ColumnFlow.column、配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/SolarClayFabricatorMetaTileEntity.kt RowFlow.row、配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/ResonatingCollectorMetaTileEntity.kt テキスト揃えを textAlign へ、中心配置を center() へ移行
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/RangedReplacerMetaTileEntity.kt ColumnFlow.column、各種 align* を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/RangedMinerMetaTileEntity.kt CE スロットの配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/PanDuplicatorMetaTileEntity.kt RowFlow.row、進捗バー配置/同期 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/PanCoreMetaTileEntity.kt ColumnFlow.columnRectangle.setColorcolor へ移行
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/PanAdapterMetaTileEntity.kt RowFlow.row、右上寄せ等の配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/EnergyConverterMetaTileEntity.kt ColumnFlow.column、配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/DistributorMetaTileEntity.kt Row/ColumnFlow.row/Flow.column へ移行
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/ClayFabricatorMetaTileEntity.kt RowFlow.row、中心配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/ChemicalMetalSeparatorMetaTileEntity.kt RowFlow.row、テキスト揃えを textAlign に移行
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/CentrifugeMetaTileEntity.kt RowFlow.rowalign/alignment を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/AutoTraderMetaTileEntity.kt Row/ColumnFlow.*、相対/中央寄せ API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/AutoCrafterMetaTileEntity.kt alignY/alignverticalCenter/right 等に更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/metatileentities/AutoClayCondenserMetaTileEntity.kt RowFlow.row、配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/items/filter/ItemStringItemFilter.kt ColumnFlow.column、配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/items/filter/ItemSimpleItemFilter.kt ColumnFlow.column、配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/items/filter/ItemFuzzyItemFilter.kt ColumnFlow.column、配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/gui/ButtonToggleable.kt getCurrentBackground override を ModularUI 3.1.5 シグネチャへ更新
src/main/kotlin/io/github/trcdevelopers/clayium/common/blocks/metalchest/TileEntityMetalChest.kt ColumnFlow.columnchildIf の新シグネチャ等に対応
src/main/kotlin/io/github/trcdevelopers/clayium/common/blocks/clayworktable/TileClayWorkTable.kt 進捗表示を DoubleSyncValue + ProgressWidget.syncHandler 方式へ移行
src/main/kotlin/io/github/trcdevelopers/clayium/common/blocks/TileEntityCreativeEnergySource.kt ColumnFlow.column、配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/multiblock/MultiblockLogic.kt テキスト揃えを textAlign に移行
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/multiblock/ClayReactorMetaTileEntity.kt テキスト揃え/中央寄せ API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/multiblock/ClayBlastFurnaceMetaTileEntity.kt 下中央寄せを horizontalCenter().bottom(0) へ更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/WorkableMetaTileEntity.kt RowFlow.rowchildIf 新シグネチャ等に対応
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/MultiTrackBufferMetaTileEntity.kt Row/ColumnFlow.*、パネル中央寄せ API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/MetaTileEntity.kt columnWithPlayerInvFlow.column() ベースへ更新、標準ヘッダ配置 API 更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/ClayLaserMetaTileEntity.kt CE スロット配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/ClayBufferMetaTileEntity.kt ColumnFlow.column、配置 API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/AbstractMinerMetaTileEntity.kt テキスト揃え/中央寄せ API を更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/AbstractItemGeneratorMetaTileEntity.kt 中央寄せ API を center() に更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/metatileentity/AbstractBuilderMetaTileEntity.kt 上中央寄せを horizontalCenter() に更新
src/main/kotlin/io/github/trcdevelopers/clayium/api/capability/impl/LaserEnergyHolder.kt テキスト揃えを textAlign に移行
src/main/kotlin/io/github/trcdevelopers/clayium/api/capability/AbstractWorkable.kt 進捗表示を DoubleSyncValue + ProgressWidget.syncHandler 方式へ移行
gradle/scripts/mod_dependencies.gradle ModularUI 依存を 3.1.5 に更新

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@soramame0256 soramame0256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bqc0n bqc0n merged commit 4a46521 into develop Mar 20, 2026
3 checks passed
@bqc0n bqc0n deleted the feat-update-modularui branch March 20, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants