Removed unnecessary dispose()
This commit is contained in:
@@ -19,7 +19,7 @@ import mindustry.world.blocks.power.*;
|
||||
import static arc.Core.*;
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
public class BlockRenderer implements Disposable{
|
||||
public class BlockRenderer{
|
||||
public static final int crackRegions = 8, maxCrackSize = 9;
|
||||
|
||||
private static final int initialRequests = 32 * 32;
|
||||
@@ -300,11 +300,4 @@ public class BlockRenderer implements Disposable{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose(){
|
||||
shadows.dispose();
|
||||
dark.dispose();
|
||||
shadows = dark = null;
|
||||
floor.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ import mindustry.world.*;
|
||||
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
public class MinimapRenderer implements Disposable{
|
||||
public class MinimapRenderer{
|
||||
private static final float baseSize = 16f;
|
||||
private final Seq<Unit> units = new Seq<>();
|
||||
private Pixmap pixmap;
|
||||
@@ -170,16 +170,6 @@ public class MinimapRenderer implements Disposable{
|
||||
return color.rgba();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose(){
|
||||
if(pixmap != null && texture != null){
|
||||
pixmap.dispose();
|
||||
texture.dispose();
|
||||
texture = null;
|
||||
pixmap = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void drawLabel(float x, float y, String text, Color color){
|
||||
Font font = Fonts.outline;
|
||||
GlyphLayout l = Pools.obtain(GlyphLayout.class, GlyphLayout::new);
|
||||
|
||||
Reference in New Issue
Block a user