Fix the memory leak when light rendering is disabled (#6321)

This commit is contained in:
LawrenceLin2333
2021-11-10 00:10:18 +08:00
committed by GitHub
parent 51730556a5
commit 68f8668162

View File

@@ -182,6 +182,7 @@ public class LightRenderer{
public void draw(){
if(!Vars.enableLight){
lights.clear();
circleIndex = 0;
return;
}