1. Trying to lock down the scrap slot in a research table. I've got CanMoveItem working to prevent dragging scrap in or out of the research table, as well as preventing right-click looting. Unfortunately, if they click on the scrap in the research table, and choose 'Actions->Drop', it dumps the scrap.

    I can detect the dumping with OnItemDropped, but can't seem to prevent it or undo it if it happens. Anyone know how?
     
  2. Got the intercept working. Yay.

    Code:
    void OnItemRemovedFromContainer(ItemContainer container, Item item)
           {
               if (container.entityOwner != null && item.info.shortname == "scrap"){
                   if (container.entityOwner.ToString().Contains("researchtable")){
                       NextFrame(() => { item.MoveToContainer(container, 1, true); });
                   }
               }
           }