Thread: Gracefully override a function
-
February 26th, 2023, 07:14 #11
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
Found the issue you were having with overriding the script. The updatePowerWindowUses actually returns a value that is used by another function in power_page.lua. In your version, you weren't returning anything, which is the same as always returning "nil" value which equates to false on boolean checks.
Here's an updated version of the extension with the return value passed through correctly.
Regards,
JPG
-
February 26th, 2023, 08:39 #12
- Join Date
- Aug 2020
- Posts
- 94
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks