chore: Fixes variable types for possible performance issues (#2172)

This commit is contained in:
Kamron Batman 2025-05-01 21:54:41 -07:00 • committed by GitHub
parent 6d43f2549c
commit da517f56c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
82 changed files with 332 additions and 343 deletions

View file

@ -266,9 +266,11 @@ public partial class MistletoeDeed : Item
if (itemID > 0)
{
Item addon = new MistletoeAddon(Hue);
var addon = new MistletoeAddon(Hue)
{
ItemID = itemID
};
addon.ItemID = itemID;
addon.MoveToWorld(loc, from.Map);
house.Addons.Add(addon);

View file

@ -76,7 +76,7 @@ namespace Server.Engines.Events
if (CheckMobile(m_From))
{
Mobile twin = new NaughtyTwin(m_From);
var twin = new NaughtyTwin(m_From);
if (twin.Deleted)
{