NullReferenceException at SetRandomAttachmentsFixed
Failed to call hook 'OnEntityDeath' on plugin 'NPCDropGun v1.7.1' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.NPCDropGun.SetRandomAttachments (Item weapon, System.Int32 count) [0x0001b] in <41f6edf0244f435b8bb0c041d6ac4e0b>:0 
  at Oxide.Plugins.NPCDropGun.ItemSpawner (BaseEntity heldEntity, UnityEngine.Vector3 dropPosition, UnityEngine.Quaternion dropRotation) [0x00137] in <41f6edf0244f435b8bb0c041d6ac4e0b>:0 
  at Oxide.Plugins.NPCDropGun.OnEntityDeath (BaseCombatEntity entity, HitInfo info) [0x00071] in <41f6edf0244f435b8bb0c041d6ac4e0b>:0 
  at Oxide.Plugins.NPCDropGun.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0026d] in <41f6edf0244f435b8bb0c041d6ac4e0b>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0

It keeps popping up.

Wrote additional null checks, hope it will fix that problem. I was not getting this exception while testing 1.7.1 update.
Looks like that worked. Thank you.
Anyone else getting this spammed in their console?
[Error] Failed to call hook 'OnEntityDeath' on plugin 'NPCDropGun v1.7.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.NPCDropGun.SetRandomAttachments (Item weapon, System.Int32 count) [0x0001b] in <36e1283023b24753947e871e4034428d>:0
at Oxide.Plugins.NPCDropGun.ItemSpawner (BaseEntity heldEntity, UnityEngine.Vector3 dropPosition, UnityEngine.Quaternion dropRotation) [0x00137] in <36e1283023b24753947e871e4034428d>:0
at Oxide.Plugins.NPCDropGun.OnEntityDeath (BaseCombatEntity entity, HitInfo info) [0x00071] in <36e1283023b24753947e871e4034428d>:0
at Oxide.Plugins.NPCDropGun.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0026d] in <36e1283023b24753947e871e4034428d>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
 
5c5cecea01791.jpg Covfefe
Anyone else getting this spammed in their console?
[Error] Failed to call hook 'OnEntityDeath' on plugin 'NPCDropGun v1.7.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.NPCDropGun.SetRandomAttachments (Item weapon, System.Int32 count) [0x0001b] in <36e1283023b24753947e871e4034428d>:0
at Oxide.Plugins.NPCDropGun.ItemSpawner (BaseEntity heldEntity, UnityEngine.Vector3 dropPosition, UnityEngine.Quaternion dropRotation) [0x00137] in <36e1283023b24753947e871e4034428d>:0
at Oxide.Plugins.NPCDropGun.OnEntityDeath (BaseCombatEntity entity, HitInfo info) [0x00071] in <36e1283023b24753947e871e4034428d>:0
at Oxide.Plugins.NPCDropGun.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0026d] in <36e1283023b24753947e871e4034428d>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0
 
Please update first before reporting an issue; you're a version behind.
Locked automatically