I get this error when ChickenCoop is loaded before Barges. If they load the other way around there is no problem.
Barges:
Code on line 2918:
Is this a Barges problem or ChickenCoop?
https://codefling.com/plugins/barges
Barges:
Failed to compile: Cannot convert type 'BaseEntity' to 'Oxide.Plugins.ChickenCoop' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion | Line: 2918, Pos: 47
Code on line 2918:
C#:
ChickenCoop chickenCoop = baseEntity as ChickenCoop;
if (chickenCoop != null)
{
for (int j = 0; j < chickenCoop.children.Count; j++)
{
FarmableAnimal farmableAnimal = chickenCoop.children[j] as FarmableAnimal;
if (farmableAnimal == null)
continue;
farmableAnimal.CancelInvoke(farmableAnimal.GetPrivateAction("MoveToNewLocation"));
}
continue;
}
Is this a Barges problem or ChickenCoop?
https://codefling.com/plugins/barges