Fixes dupe exception (#258)
- [X] Cleans up ActivatorUtil - [X] Fixes dupe exception - [X] Fixes a bug in BasePotion - [X] Fixes a few possible memory leaks Bumps release version
This commit is contained in:
parent
4d6e584b6c
commit
e9c1e4cbba
66 changed files with 597 additions and 496 deletions
|
|
@ -36,8 +36,8 @@ namespace Server.Events.Halloween
|
|||
public static DateTime FinishHalloween => new DateTime(2012, 11, 15);
|
||||
|
||||
public static Item RandomGMBeggerItem =>
|
||||
(Item)ActivatorUtil.CreateInstance(m_GMBeggarTreats.RandomElement());
|
||||
m_GMBeggarTreats.RandomElement().CreateInstance<Item>();
|
||||
|
||||
public static Item RandomTreat => (Item)ActivatorUtil.CreateInstance(m_Treats.RandomElement());
|
||||
public static Item RandomTreat => m_Treats.RandomElement().CreateInstance<Item>();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue