/** Make sure we can only accept items */ public override bool CanReceive(GuiComponent value) { if (DataLink == null) { return(true); } if (value == null) { return(false); } if (!Enabled) { return(false); } if (containsCursedItem() && DataLink.IsEquipSlot) { return(false); } if (value is GuiItem) { if ((value as GuiItem).ItemInstance == null) { return(true); } return(DataLink.CanAccept((value as GuiItem).ItemInstance)); } return(false); }