1. NOP

    NOP

    I've tried using item.parent, item.info.Parent, to try and get the parent's shortname that way, and they're always null. Is there a way to accomplish this?

    Code:
    void CanAcceptItem(ItemContainer container, Item item)
            {
                BasePlayer itemOwner = container?.GetOwnerPlayer();
                if (itemOwner != null && item?.info?.shortname == "charcoal")
                {
    // How to determine if the charcoal came from a Furnace, Large Furnace, or Campfire?
                }
            }