Skip to content

Commit

Permalink
v1.7.0 - Readying for MH5 beta
Browse files Browse the repository at this point in the history
* Fixed missing config Clone
  • Loading branch information
hamstar0 committed Aug 27, 2019
1 parent aeedd22 commit a87b177
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


namespace Psycho {
public class PsychoConfigData : ModConfig {
public class PsychoConfig : ModConfig {
public override ConfigScope Mode => ConfigScope.ServerSide;


Expand Down Expand Up @@ -85,5 +85,19 @@ public class PsychoConfigData : ModConfig {
//BuffID.HeartLamp,
BuffID.StarInBottle
};



////////////////

public override ModConfig Clone() {
var clone = (PsychoConfig)base.Clone();

clone.PsychoWardingNeedsBuffs = new List<int>( this.PsychoWardingNeedsBuffs );
clone.ButcherWardingNeedsBuffs = new List<int>( this.ButcherWardingNeedsBuffs );
clone.SniperWardingNeedsBuffs = new List<int>( this.SniperWardingNeedsBuffs );

return clone;
}
}
}
2 changes: 1 addition & 1 deletion PsychoMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ partial class PsychoMod : Mod {

////////////////

public PsychoConfigData Config => this.GetConfig<PsychoConfigData>();
public PsychoConfig Config => this.GetConfig<PsychoConfig>();



Expand Down

0 comments on commit a87b177

Please sign in to comment.