[#12544] `set prop` Does Not Fully Update Building Team Properties
本帖由 MDT GitHub 同步机器人自动整理。翻译与摘要由 AI 生成,仅供阅读参考。
自动翻译暂时不可用,以下内容为原始内容。
问题概要
未生成摘要。
内容
Platforms
Windows
Build
159.7
Issue
Description
When using the set prop statement to change a building's team, the internal team value is updated, but many states are not refreshed — including both visual indicators (badge, color) and functional behaviors (e.g., output targeting, unit production). The building continues to behave as if it still belongs to the old team in several key interactions.
Impact Example
Distribution
Normal:
<img width="653" height="180" alt="Image" src="https://github.com/user-attachments/assets/d0665423-be6e-4f75-9987-3be79fe7ba35" />
After pressing the switch to change the team:
<img width="1056" height="210" alt="Image" src="https://github.com/user-attachments/assets/03fc08cb-3e51-40eb-ac77-1f128c0490a5" />
The team value has changed, but the corner markers and functions have not changed.
Place the conveyor next to the item source:
<img width="1409" height="279" alt="Image" src="https://github.com/user-attachments/assets/c3042310-1c14-4547-8a95-0ecf87f3c555" />
Recovered.
Or place the processor near the item source:
<img width="1084" height="262" alt="Image" src="https://github.com/user-attachments/assets/e3d59998-655e-400c-bd3b-627898f1827e" />
The corner marker is correct, but the function has not been restored correctly.
Unit Production
Steps:
Switch team to 1
Place air factory and set it to flare
Press switch to change team to 2
Place power source and item source
Press switch to change team to 1
<img width="755" height="341" alt="Image" src="https://github.com/user-attachments/assets/55b4a895-69f8-4cae-831e-a882f93365dc" />
The factory is not working properly.
Turret
Steps:
Switch team to 1
Place duo
Press switch to change team to 2
Place item source
Press switch to change team to 1
<img width="522" height="186" alt="Image" src="https://github.com/user-attachments/assets/9ec9cb86-5c4a-4cd4-8de1-820a8305d333" />
Now it won't accept items
Etc.
Steps to reproduce
Mods used
None
Save file
(Crash) logs
No response
Submission
I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
I have searched the closed and open issues to make sure that this problem has not already been reported.
I am not using Foo's Client.
This issue occurs with no mods enabled.
I have attached a valid save file.
原始信息
GitHub 编号:#12544
作者:Kaleinova
状态:closed
标签:bug
创建时间:2026-08-28 12:32:19 CST
<details> <summary>查看原文</summary>
Platforms
Windows
Build
159.7
Issue
Description
When using the set prop statement to change a building's team, the internal team value is updated, but many states are not refreshed — including both visual indicators (badge, color) and functional behaviors (e.g., output targeting, unit production). The building continues to behave as if it still belongs to the old team in several key interactions.
Impact Example
Distribution
Normal:
<img width="653" height="180" alt="Image" src="https://github.com/user-attachments/assets/d0665423-be6e-4f75-9987-3be79fe7ba35" />
After pressing the switch to change the team:
<img width="1056" height="210" alt="Image" src="https://github.com/user-attachments/assets/03fc08cb-3e51-40eb-ac77-1f128c0490a5" />
The team value has changed, but the corner markers and functions have not changed.
Place the conveyor next to the item source:
<img width="1409" height="279" alt="Image" src="https://github.com/user-attachments/assets/c3042310-1c14-4547-8a95-0ecf87f3c555" />
Recovered.
Or place the processor near the item source:
<img width="1084" height="262" alt="Image" src="https://github.com/user-attachments/assets/e3d59998-655e-400c-bd3b-627898f1827e" />
The corner marker is correct, but the function has not been restored correctly.
Unit Production
Steps:
Switch team to 1
Place air factory and set it to flare
Press switch to change team to 2
Place power source and item source
Press switch to change team to 1
<img width="755" height="341" alt="Image" src="https://github.com/user-attachments/assets/55b4a895-69f8-4cae-831e-a882f93365dc" />
The factory is not working properly.
Turret
Steps:
Switch team to 1
Place duo
Press switch to change team to 2
Place item source
Press switch to change team to 1
<img width="522" height="186" alt="Image" src="https://github.com/user-attachments/assets/9ec9cb86-5c4a-4cd4-8de1-820a8305d333" />
Now it won't accept items
Etc.
Steps to reproduce
Mods used
None
Save file
(Crash) logs
No response
Submission
I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
I have searched the closed and open issues to make sure that this problem has not already been reported.
I am not using Foo's Client.
This issue occurs with no mods enabled.
I have attached a valid save file.
</details>
来源:GitHub #12544