Jump to content

Failed to call hook 'OnItemUse'

Closed 1.1.24 1.1.25

iamallama
iamallama

Posted

Line 1258 uses the "Cooking" variable/plugin without checking if it is null and loaded.

            if (Convert.ToBoolean(Cooking.Call("IsCookingMeal", item))) return null;

Should be

            if (Cooking != null && Cooking.IsLoaded && Convert.ToBoolean(Cooking.Call("IsCookingMeal", item))) return null;

 

  • Curator
imthenewguy

Posted

2 hours ago, iamallama said:

Line 1258 uses the "Cooking" variable/plugin without checking if it is null and loaded.

            if (Convert.ToBoolean(Cooking.Call("IsCookingMeal", item))) return null;

Should be

            if (Cooking != null && Cooking.IsLoaded && Convert.ToBoolean(Cooking.Call("IsCookingMeal", item))) return null;

 

Patched for next update. Thanks for the spot!

 

  • Curator
imthenewguy

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.4m
Total downloads
Customers
10.8k
Customers served
Files Sold
156.2k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.