With the new update, blueprints are no longer unlocking with this plugin. I modified the code to debug and console output is showing that it's unlocking the blueprints.. but the crafting UI doesn't show the item..
private void UnlockAllBlueprints(BasePlayer player)
{
ProtoBuf.PersistantPlayer playerInfo = SingletonComponent<ServerMgr>.Instance.persistance.GetPlayerInfo(player.userID);
foreach (ItemBlueprint itemBlueprint in ItemManager.bpList)
{
if (itemBlueprint.userCraftable && !itemBlueprint.defaultBlueprint)
{
if (!playerInfo.unlockedItems.Contains(itemBlueprint.targetItem.itemid))
playerInfo.unlockedItems.Add(itemBlueprint.targetItem.itemid);
Puts("DEBUG: Unlocking " + itemBlueprint.targetItem.itemid + " for " + player.displayName);
}
}
SingletonComponent<ServerMgr>.Instance.persistance.SetPlayerInfo(player.userID, playerInfo);
player.SendNetworkUpdateImmediate(false);
Puts("DEBUG: UnlockAllBlueprints has completed.");
}