Help with Khas lighting

So, I bought Khas Lighting the other day and have been messing around with it, and I've noticed a little issue with it, and I'm wondering if anyone knows what's causing it. I'm getting lines that cut off lighting in certain areas, and it's not really a set space, it's in random places around the map. But always in the same spot.

My map size is: 

150x160

 

Khas Lighting.png

^ Inside of this, the lines go in a square.

Above me, where the corners are located:
44, 74 ; 96, 74 ; 44, 102 ; 96, 102

Now, the line below my character:
40, 105 ; 40, 70 ; 100, 70 ; 100, 106

Those are the edges of the lines when they turn to form a square.
However, while the 44, 74 does go over all the way to 96, 74 ; It also continues going straight up, all the way to the top of the map. The same goes for 44, 102 and  96, 102. They turn towards each other, but also go to the bottom of the map from those points.
Same for the second set of lines, they're a square larger than the coordinates above them, that goes around the smaller square.

 

KhasLighting.png

And a picture of how they continue in their straight lines upwards on the edges of the squares.

The only piece in any of the scripts I can see that would have any effect towards this issue is this:

module Khas_Core # MAX REGION HEIGHT # Max region to consider a height mark. Max_Region_Height = 18 # LOAD MAP DATA # You can add map IDs here if you want their data to be loaded before the # game starts. This will prevent any delay when switching to a big map. Load_Map_Data = [] # ENABLE BUILDING HEIGHT DATA # If you are using scripts and features that need building and height data, # please set this to true. Enable_BH_Data = true endWhere it says Max_Region_Height = 18
However, it's originally at 16, and I tried increasing it to 18, but nothing changed.
This isn't just special to the map I'm working on, it seems to happen to a lot of the larger maps.

Can anyone give me some help on how to fix this? I've been trying for hours and have read through absolutely every line of all the scripts for Khas Lighting, and have come across nothing in regards to this particular issue.

I tried to give you as much information as possible about this that I think is helpful. If you need anything else, just let me know... I'll edit this and add to it.
I've moved this thread to Product Discussion and Support - Khas Scripts. Please be sure to post your threads in the correct forum next time. Thank you.
I've moved this thread to Product Discussion and Support - Khas Scripts. Please be sure to post your threads in the correct forum next time. Thank you.
I apologize, I didn't see this section.
do you have the region set right? it says that its base on region so you might of missed something with the regions or the map might be too big
do you have the region set right? it says that its base on region so you might of missed something with the regions or the map might be too big
And now I feel really stupid, lol.

I read your comment and thought to myself "I did set a couple regions... Wonder where they're at..."

And wah-lah. That's exactly my problem.

Thank you very much.

--Edit--

For some reason, I cannot choose a solution to this question. But yours is the solution.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-khas-lighting.52117/