88 {
90 {
91 if (!action_data.m_Target.GetObject() || !action_data.m_MainItem)
92 return false;
93
94 PluginRecipesManager moduleRecipesManager;
95 Class.CastTo(moduleRecipesManager,
GetPlugin(PluginRecipesManager) );
96
97 WorldCraftActionData action_data_wc = WorldCraftActionData.Cast(action_data);
98
100 Class.CastTo(item2, action_data_wc.m_Target.GetObject());
101 if(!moduleRecipesManager.IsRecipePossibleToPerform(action_data_wc.m_RecipeID, action_data.m_MainItem, item2, action_data.m_Player))
102 {
103 return false;
104 }
105 }
106
107 return true;
108 }
class GP5GasMask extends MaskBase ItemBase
PluginBase GetPlugin(typename plugin_type)
proto native CGame GetGame()