Fix bug which allowed you to build machines for free by taking the board out and putting it in again.
This commit is contained in:
@@ -130,10 +130,10 @@ namespace Content.Server.Construction.Components
|
|||||||
|
|
||||||
private void ResetProgressAndRequirements(MachineBoardComponent machineBoard)
|
private void ResetProgressAndRequirements(MachineBoardComponent machineBoard)
|
||||||
{
|
{
|
||||||
_requirements = machineBoard.Requirements;
|
_requirements = new Dictionary<MachinePart, int>(machineBoard.Requirements);
|
||||||
_materialRequirements = machineBoard.MaterialIdRequirements;
|
_materialRequirements = new Dictionary<string, int>(machineBoard.MaterialIdRequirements);
|
||||||
_componentRequirements = machineBoard.ComponentRequirements;
|
_componentRequirements = new Dictionary<string, GenericPartInfo>(machineBoard.ComponentRequirements);
|
||||||
_tagRequirements = machineBoard.TagRequirements;
|
_tagRequirements = new Dictionary<string, GenericPartInfo>(machineBoard.TagRequirements);
|
||||||
|
|
||||||
_progress.Clear();
|
_progress.Clear();
|
||||||
_materialProgress.Clear();
|
_materialProgress.Clear();
|
||||||
|
|||||||
4
Resources/Changelog/Parts/frame.yml
Normal file
4
Resources/Changelog/Parts/frame.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
author: Zumorica
|
||||||
|
changes:
|
||||||
|
- type: Fix # One of the following: Add, Remove, Tweak, Fix
|
||||||
|
message: Fix being able to build machines for free by taking the board out, putting it in again and screwing.
|
||||||
Reference in New Issue
Block a user