void EntityDeployed_Test() { try { Entity Ent = null; if (World.GetWorld().Entities.ToArray().Length > 1) { Ent = World.GetWorld().Entities.ToArray()[1]; } if (Ent == null) { Log("EntityDeployed_Test: Ent == null!"); } Log("EntityDeployed_Test: Test 1"); Hooks.EntityDeployed(Ent); Fougerite.Player player = null; Ent.ChangeOwner(player); Log("EntityDeployed_Test: Test 2"); Hooks.EntityDeployed(Ent); Log("EntityDeployed_Test: Test 3"); Hooks.EntityDeployed(null); Ent = new Entity(new object()); Log("EntityDeployed_Test: Test 4"); Hooks.EntityDeployed(Ent); } catch (Exception ex) { Logger.LogException(ex); } }