NullReferenceException at Disease.RecoverFixed

Check out version 1.0.4, I made some changes that hopefully fix this issue. Though definitely let me know if its still happening on that version, I didn't get a ton of time to test it yet.

mr01sam

Check out version 1.0.4, I made some changes that hopefully fix this issue. Though definitely let me know if its still happening on that version, I didn't get a ton of time to test it yet.

tyvm. Im going to test it right now.

Merged post

I just got this one. Its about OnItemUse hook

https://prnt.sc/xw5kgp

I got this on console

Failed to call hook 'OnItemUse' on plugin 'Diseases v1.0.4' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Diseases+Disease.Recover (BaseEntity entity) [0x0000b] in <49140666ebb24fcdaaaa14461a8bb7c9>:0
at Oxide.Plugins.Diseases.OnItemUse (Item item, System.Int32 amountToUse) [0x00075] in <49140666ebb24fcdaaaa14461a8bb7c9>:0
at Oxide.Plugins.Diseases.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x005bc] in <49140666ebb24fcdaaaa14461a8bb7c9>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <80b90e8213db44b29ec2d4111764172c>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ec05e0208c9149bba43236ca58fea105>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ec05e0208c9149bba43236ca58fea105>:0

Thanks for reporting. This should be fixed in version 1.0.5, try it out.

Drivello

tyvm. Im going to test it right now.

Merged post

I just got this one. Its about OnItemUse hook

https://prnt.sc/xw5kgp

Check out 1.0.5 now, spent all day refactoring and I think this issue is (for real this time) resolved now.

mr01sam

Check out 1.0.5 now, spent all day refactoring and I think this issue is (for real this time) resolved now.

tyvm! I ll test it and i ll let u know if something fail.

Locked automatically