ExMod-Team / EXILED

A high-level plugin framework for SCP: Secret Laboratory servers (scpsl). It offers an event system for developers to hook in order to manipulate or change game code, or implement their own functions.
https://docs.exiled-team.net/
Other
55 stars 36 forks source link

Spawning fix #56

Closed IRacle1 closed 2 months ago

IRacle1 commented 2 months ago

Description

Describe the changes Fixes spam error

[2024-08-12 13:44:50.042 +03:00] [STDOUT] KeyNotFoundException: The given key 'Keycard BreakableDoor (Interactables.Interobjects.BreakableDoor)' was not present in the dictionary.
[2024-08-12 13:44:50.042 +03:00] [STDOUT]   at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <75633565436c42f0a6426b33f0132ade>:0
[2024-08-12 13:44:50.042 +03:00] [STDOUT]   at Exiled.API.Features.Doors.Door.Get (Interactables.Interobjects.DoorUtils.DoorVariant doorVariant) [0x00019] in <b3f850ef2d0441a69999f34090edad5c>:0
[2024-08-12 13:44:50.042 +03:00] [STDOUT]   at Exiled.Events.EventArgs.Map.SpawningItemEventArgs..ctor (InventorySystem.Items.Pickups.ItemPickupBase pickupBase, System.Boolean shouldInitiallySpawn, Interactables.Interobjects.DoorUtils.DoorVariant door) [0x00019] in <a75d3424fccf49b69f63e75f537392e5>:0
[2024-08-12 13:44:50.042 +03:00] [STDOUT]   at (wrapper dynamic-method) MapGeneration.Distributors.ItemDistributor.MapGeneration.Distributors.ItemDistributor.CreatePickup_Patch0(MapGeneration.Distributors.ItemDistributor,ItemType,UnityEngine.Transform,string)
[2024-08-12 13:44:50.043 +03:00] [STDOUT]   at MapGeneration.Distributors.ItemDistributor.PlaceSpawnables () [0x00062] in <07536fddaaf54d96ba49671eff4bd426>:0
[2024-08-12 13:44:50.043 +03:00] [STDOUT]   at MapGeneration.Distributors.SpawnablesDistributorBase.Update () [0x00040] in <07536fddaaf54d96ba49671eff4bd426>:0

What is the current behavior? (You can also link to an open issue here) error spam😈

What is the new behavior? (if this is a feature change) working😁

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?) no

Other information: 🔥🔥🔥

Types of changes

Submission checklist

Patches (if there are any changes related to Harmony patches)

Other