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
vines/init.lua:46: attempt to index local 'player' (a nil value) #11
Comments
in theory this is as simple as changing https://github.com/mt-mods/plantlife_modpack/blob/master/vines/init.lua#L46 to |
pinging @JordanL2 as blame reveals it was there PR that broke it |
Apologies for that miss, @wsor4035 your solution sounds good to me. |
@JordanL2 it appears there is a lot of globals in vines/init.lua is that intended? |
Probably not, I'll be able to check myself soon but it's very likely I forgot the local keyword for some variables. Probably all the settings at the top? |
yeah, vscode (with luacheck extension) was lighting up like a Christmas tree |
@wsor4035 I raised this PR to fix the missing local keywords: Also did another small fix at the same time. Can you check there aren't any unnecessary global variables afterwards? I think there should just be |
This falling lua calls a dig event with no player.
This is like 380 of falling.lua:
And here's line 270 of falling.lua:
For my reference 1198
The text was updated successfully, but these errors were encountered: