public void update() {
        if (fading != 0) {
            padding += fading == -1 ? 3 : 0;
            opacity += fading * (0.0333f + (fading + 1) * 0.00165f);

            if (opacity <= 0) {opacity = 0; }
            if (opacity >= 1f) {opacity = 1f;}

            if (padding >= maxPadding) {
                super.remove();

                if (world.countBonuses() < 2) {
                    Random random = world.getRandom();

                    if (true || random.nextInt(128) % 5 * 2 == 0) { world.addBonus(this, BonusType.PlatformExtension); }
                }
            }
        }
    }