found a bug on uiFixture and the only solution would be creating a cut-down copy of the original ui

This commit is contained in:
minjaesong
2024-01-27 19:48:44 +09:00
parent 8b1331770d
commit 46b55f6303
4 changed files with 40 additions and 2 deletions

View File

@@ -1011,6 +1011,8 @@ open class TerrarumIngame(batch: FlippingSpriteBatch) : IngameInstance(batch) {
filterVisibleActors()
}
if (uiInventoryPlayer == uiFixture) throw IllegalStateException("Do NOT use InventoryPlayer as a UIFixture, the engine cannot handle this situation XwX")
uiContainer.forEach {
// suppress inventory opening if fixture inventory is opened