The following spams my console 3 times a second, any idea how to fix it?
(03:44:07) | Failed to call hook 'OnEntityTakeDamage' on plugin 'MyMiniCopter v0.1.4' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.MyMiniCopter.OnEntityTakeDamage (BaseCombatEntity entity, HitInfo hitInfo) [0x00026] in <0746424c52984592a19774aec93bdf74>:0
at Oxide.Plugins.MyMiniCopter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00238] in <0746424c52984592a19774aec93bdf74>: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>:0Note: there is no one currently on the server(so no one using the plugin)