Another minor optimization

This commit is contained in:
Anuken
2024-01-06 12:55:59 -05:00
parent fae167a91d
commit 981796a5b2
6 changed files with 9 additions and 8 deletions

View File

@@ -440,7 +440,7 @@ public class Block extends UnlockableContent implements Senseable{
}
public float drawPlaceText(String text, int x, int y, boolean valid){
if(renderer.pixelator.enabled()) return 0;
if(renderer.pixelate) return 0;
Color color = valid ? Pal.accent : Pal.remove;
Font font = Fonts.outline;

View File

@@ -71,7 +71,7 @@ public class MessageBlock extends Block{
@Override
public void drawSelect(){
if(renderer.pixelator.enabled()) return;
if(renderer.pixelate) return;
Font font = Fonts.outline;
GlyphLayout l = Pools.obtain(GlyphLayout.class, GlyphLayout::new);