Spam in the consoleFixed
Failed to call hook 'canRemove' on plugin 'DroneHover v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.DroneHover.canRemove (BasePlayer player, Drone drone) [0x00000] in <ed01b109faeb4b4189b64552710be048>:0
at Oxide.Plugins.DroneHover.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0040f] in <ed01b109faeb4b4189b64552710be048>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <31122a27a2414cd799150f8677cf39d4>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

The reason Drone Hover uses the canRemove hook is to prevent the Remover Tool from removing a drone that is hovering. This error means that the canRemove hook is being called with a null entity, which would be pointless since no plugin could determine which entity was trying to be removed. Looking at the Remover Tool plugin code, such a call is not actually possible as it would have resulted in an NRE in Remover Tool first. Therefore, you are either running an older version of Remover Tool, or some other plugin is calling canRemove.

I will submit a "fix" for this by adding a null check for the entity argument, but I would also like to understand why this is happening in the first place. Could you do a code search of your plugins for "canRemove" (with the quotes) to see which plugins are calling it?

Locked automatically