Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usually "Chicken Panel" widget not loading at the start #3

Open
PenguiN560 opened this issue Feb 9, 2017 · 1 comment
Open

Usually "Chicken Panel" widget not loading at the start #3

PenguiN560 opened this issue Feb 9, 2017 · 1 comment

Comments

@PenguiN560
Copy link

Usually "Chicken Panel" widget not loading at the start, and give this messages:

[widgets.lua] Error: false
[widgets.lua] Error: Error in IsAbove(): [string "LuaUI/Widgets/gui_chicken.lua"]:601: attempt to compare number with nil
[widgets.lua] Error: Removed widget: Chicken Panel

After turn off and turn on in widgets list(F11) "Chicken Panel" widget it works fine

@PenguiN560
Copy link
Author

PenguiN560 commented Feb 9, 2017

Looks like additional check currentTimeSeconds != nil solve this problem

--- if hoverXMin < x and y1 + 145 < y and x < x1 + 270 and y < hoverYMin and currentTimeSeconds > gameInfo.gracePeriod then
+++ if hoverXMin < x and y1 + 145 < y and x < x1 + 270 and y < hoverYMin and currentTimeSeconds and currentTimeSeconds > gameInfo.gracePeriod then

PS: this hotfix in pull requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant