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;

 

  • Like 1
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!

 

imthenewguy

Posted

Changed Status from Pending to Closed

Changed Fixed In to Next Version

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • 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.