diff --git a/core/src/mindustry/ui/dialogs/PlanetDialog.java b/core/src/mindustry/ui/dialogs/PlanetDialog.java index 4dd3c25cbd..621e3fcb93 100644 --- a/core/src/mindustry/ui/dialogs/PlanetDialog.java +++ b/core/src/mindustry/ui/dialogs/PlanetDialog.java @@ -49,6 +49,7 @@ public class PlanetDialog extends BaseDialog{ private final Mat3D mat = new Mat3D(); private final Vec3 camRelative = new Vec3(); private final ResourcesDialog resources = new ResourcesDialog(); + private final FrameBuffer buffer = new FrameBuffer(2, 2, true); private float zoom = 1f, smoothZoom = 1f, selectAlpha = 1f; private Bloom bloom = new Bloom(Core.graphics.getWidth()/4, Core.graphics.getHeight()/4, true, false){{ @@ -179,8 +180,6 @@ public class PlanetDialog extends BaseDialog{ cont.rect((x, y, w, h) -> render()).grow(); } - FrameBuffer buffer = new FrameBuffer(2, 2, true); - @Override public void draw(){ boolean doBuffer = color.a < 0.99f; diff --git a/core/src/mindustry/world/blocks/production/Separator.java b/core/src/mindustry/world/blocks/production/Separator.java index 9fa8efbdc3..29c035913b 100644 --- a/core/src/mindustry/world/blocks/production/Separator.java +++ b/core/src/mindustry/world/blocks/production/Separator.java @@ -92,7 +92,7 @@ public class Separator extends Block{ } if(progress >= 1f){ - progress = 0f; + progress %= 1f; int sum = 0; for(ItemStack stack : results) sum += stack.amount;