Fix the memory leak when light rendering is disabled (#6321)
This commit is contained in:
@@ -182,6 +182,7 @@ public class LightRenderer{
|
||||
public void draw(){
|
||||
if(!Vars.enableLight){
|
||||
lights.clear();
|
||||
circleIndex = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user