This commit is contained in:
Anuken
2020-04-24 12:01:08 -04:00
parent 5d4ca753a7
commit 6041e238a6
10 changed files with 47 additions and 19 deletions

View File

@@ -230,6 +230,7 @@ public class Block extends UnlockableContent{
font.getData().setScale(1f);
Draw.reset();
Pools.free(layout);
return width;
}

View File

@@ -48,6 +48,7 @@ public class ForceProjector extends Block{
canOverdrive = false;
hasLiquids = true;
hasItems = true;
expanded = true;
consumes.add(new ConsumeLiquidFilter(liquid -> liquid.temperature <= 0.5f && liquid.flammability < 0.1f, 0.1f)).boost().update(false);
}

View File

@@ -62,6 +62,8 @@ public class MessageBlock extends Block{
@Override
public void drawSelect(){
if(renderer.pixelator.enabled()) return;
BitmapFont font = Fonts.outline;
GlyphLayout l = Pools.obtain(GlyphLayout.class, GlyphLayout::new);
boolean ints = font.usesIntegerPositions();