void OnItemAddedToContainer(ItemContainer container, Item item)
{
Item obj = item;
Item slot = obj.contents.GetSlot(0);
var fuel = ItemManager.CreateByName("water", 5000);
ItemModContainer component = obj.info.GetComponent<ItemModContainer>();
if (slot == null && obj.name == "assets/prefabs/food/water jug/waterjug.entity.prefab")
{
fuel.MoveToContainer(obj.contents);
}
}having trouble adding a check to my plugin, I've tried using if(item.name == "") with the short name, prefab name, and the in-game name but none of them work. how would I add a check to make sure the item is a waterjug?