Всем привет. Помогите адаптировать плагин с юмода. Там полетели хуки
Сам плагин тут:
https://umod.org/plugins/instant-smelt
Ошибка:
Failed to call hook 'OnDispenserGather' on plugin 'InstantSmelt v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.InstantSmelt.OnGather (BasePlayer player, Item item, System.Boolean bonus, System.Boolean pickup) [0x0002b] in <d420ea42000c47ea9af63d97b8e73586>:0
at Oxide.Plugins.InstantSmelt.OnDispenserGather (ResourceDispenser dispenser, BasePlayer player, Item item) [0x00000] in <d420ea42000c47ea9af63d97b8e73586>:0
at Oxide.Plugins.InstantSmelt.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001c6] in <d420ea42000c47ea9af63d97b8e73586>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0
Сам плагин тут:
https://umod.org/plugins/instant-smelt
Ошибка:
Failed to call hook 'OnDispenserGather' on plugin 'InstantSmelt v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.InstantSmelt.OnGather (BasePlayer player, Item item, System.Boolean bonus, System.Boolean pickup) [0x0002b] in <d420ea42000c47ea9af63d97b8e73586>:0
at Oxide.Plugins.InstantSmelt.OnDispenserGather (ResourceDispenser dispenser, BasePlayer player, Item item) [0x00000] in <d420ea42000c47ea9af63d97b8e73586>:0
at Oxide.Plugins.InstantSmelt.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001c6] in <d420ea42000c47ea9af63d97b8e73586>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0