spatialhash.lua indexes the vector table 4 times yet it doesn't require vector-light.lua itself, so it is expecting it to be global which is a bad pattern.
The lines where vector is indexed are 149, 150 and 167
Fixing is as simple as adding the following line at the top of the file
local vector = require(_PACKAGE .. ".vector-light")
spatialhash.lua
indexes thevector
table 4 times yet it doesn't requirevector-light.lua
itself, so it is expecting it to be global which is a bad pattern.The lines where vector is indexed are 149, 150 and 167
Fixing is as simple as adding the following line at the top of the file