Skip to content

fix: resolve bug in Complex demo#384

Merged
crashkonijn merged 3 commits intocrashkonijn:masterfrom
GEFNENEN:GEFNENEN-patch-1
Jan 14, 2026
Merged

fix: resolve bug in Complex demo#384
crashkonijn merged 3 commits intocrashkonijn:masterfrom
GEFNENEN:GEFNENEN-patch-1

Conversation

@GEFNENEN
Copy link
Contributor

@GEFNENEN GEFNENEN commented Jan 14, 2026

Fixed a bug where the CreateItemAction consumed resources without producing items.

Fixed a bug where the CreateItemAction consumed resources without producing items.
Copilot AI review requested due to automatic review settings January 14, 2026 09:58
@github-actions github-actions bot added the bug label Jan 14, 2026
@GEFNENEN GEFNENEN changed the title fix demo bug in the right way fix: resolve bug in Complex demo Jan 14, 2026
Copy link

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

This PR fixes a bug in the Complex demo by preventing the CreateItemAction from being interrupted when its conditions change during execution. The action removes Iron and Wood resources from the inventory during execution, which would invalidate its own conditions without the fix.

Changes:

  • Added .SetValidateConditions(false) to CreateItemAction configuration to prevent mid-execution interruption
  • Fixed whitespace formatting at the end of two files

Reviewed changes

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

File Description
Demo/Assets/CrashKonijn/GOAP/Demos/Complex/Factories/Extensions/ActionExtensions.cs Added .SetValidateConditions(false) to prevent action interruption when resources are consumed; fixed trailing whitespace
Demo/Assets/CrashKonijn/GOAP/Demos/Complex/Actions/CreateItemAction.cs Fixed trailing whitespace formatting

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

@crashkonijn crashkonijn merged commit d5a7c52 into crashkonijn:master Jan 14, 2026
16 of 17 checks passed
@crashkonijn
Copy link
Owner

Great fix, thank you for your PR!

@GEFNENEN GEFNENEN deleted the GEFNENEN-patch-1 branch January 16, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments