Jump to content

Null Checking

Pending 2.0.22

Stewie
Stewie

Posted

Please can you add some null checking to OnEntitySpawned(Recycler recycler) as we have had several instances where a null was fired and it triggered your recycler.gameObject.GetComponent<CustomRecycle>().

Error:
 

Failed to call internal hook 'OnEntitySpawned' on plugin 'CustomRecycle v2.0.22' [2949838417] (Object reference not set to an instance of an object)
   at void Oxide.Plugins.CustomRecycle.OnEntitySpawned(Recycler recycler) in /home/container/carbon/plugins/CustomRecycle.cs:line 103
   at object Oxide.Plugins.CustomRecycle.InternalCallHook(uint hook, object[] args) in CustomRecycle.cs/Internal:line 168


We are running your plugin on CarbonMod if that helps.

ThePitereq

Posted

Hey, I am currently unavailable but i'll check it in few days, sorry for that!

  • Like 1
1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.2k

Files Sold

Total number of files sold.

2.5m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.