Cleanup, optimization

This commit is contained in:
Anuken
2020-05-01 16:35:18 -04:00
parent 3101fc8056
commit 135b87fdb2
20 changed files with 138 additions and 154 deletions

View File

@@ -32,12 +32,15 @@ public class Minimap extends Table{
@Override
public void draw(){
if(renderer.minimap.getRegion() == null) return;
if(!clipBegin()) return;
Draw.rect(renderer.minimap.getRegion(), x + width / 2f, y + height / 2f, width, height);
if(renderer.minimap.getTexture() != null){
renderer.minimap.drawEntities(x, y, width, height, 0.75f, false);
}
clipEnd();
}
}).size(140f);