Ore Planter

Плагин Ore Planter 2.10

Failed to call hook 'OnEntityKill' on plugin 'OrePlanter v2.10.0' (NullReferenceException: Object reference not set to an instance of an object.)
at Oxide.Plugins.OrePlanter.OnEntityKill (BaseNetworkable entity) [0x00013] in <d674efdccc394afc9006f650fb5273e1>:0
at Oxide.Plugins.OrePlanter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003b2] in <d674efdccc394afc9006f650fb5273e1>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d82f1fa409f84967ab685a3dbdd116ae>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
 

Вложения

  • Мне нравится
Реакции: Northdead
Failed to call hook 'OnEntityKill' on plugin 'OrePlanter v2.10.0' (NullReferenceException: Object reference not set to an instance of an object.)
at Oxide.Plugins.OrePlanter.OnEntityKill (BaseNetworkable entity) [0x00013] in <d674efdccc394afc9006f650fb5273e1>:0
at Oxide.Plugins.OrePlanter.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x003b2] in <d674efdccc394afc9006f650fb5273e1>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d82f1fa409f84967ab685a3dbdd116ae>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
При каком действии возникает ошибка?
 
  • Мне нравится
Реакции: Rhaegar
Northdead Error while compiling OrePlanter: 'OreResourceEntity' does not contain a definition for 'stages' and no accessible extension method 'stages' accepting a first argument of type 'OreResourceEntity' could be found (are you missing a using directive or an assembly reference?) | Line: 561, Pos: 24
 
Найди и удали проверку:
C#:
if (entity.stages != null && entity.stages.Count > 2)
{
    entity.health = entity.stages[2].health;
}
else
{
    Puts("Не удалось применить стадии, используем максимальное здоровье.");
    entity.health = entity.MaxHealth();
}

Добавь строку:
C#:
entity.health = entity.MaxHealth() * 0.4f;