repo for my hex addons :3
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

eat top iotas when starting refinement

+3 -3
+3 -3
project/hexic/src/main/scala/org/eu/net/pool/hexic/main.scala
··· 1693 1693 case Seq() => throw MishapNotEnoughArgs(2, 0) 1694 1694 case Seq(_) => throw MishapNotEnoughArgs(2, 1) 1695 1695 case saved:+(target: ListIota):+(filter: ListIota) => 1696 - if filter.isEmpty then (img.withStack(_ :+ ListIota(target.getList.filter(_.isTruthy).toSeq)), cont, HexEvalSounds.THOTH, Seq()) // short-circuit on empty filter 1696 + if filter.isEmpty then (img.withStack(_.dropRight(2) :+ ListIota(target.getList.filter(_.isTruthy).toSeq)), cont, HexEvalSounds.THOTH, Seq()) // short-circuit on empty filter 1697 1697 else target.getList.toSeq match 1698 1698 case first +: rest => 1699 1699 // set up filter, ideally FilterFrame would do this 1700 - (img.withStack(_ :+ first), cont.pushFrame(FilterFrame(saved, filter.getList.toSeq, first, Seq(), rest)).pushFrame(FrameEvaluate(filter.getList, true)), HexEvalSounds.THOTH, Seq()) 1700 + (img.withStack(_.dropRight(2) :+ first), cont.pushFrame(FilterFrame(saved, filter.getList.toSeq, first, Seq(), rest)).pushFrame(FrameEvaluate(filter.getList, true)), HexEvalSounds.THOTH, Seq()) 1701 1701 case _ => 1702 1702 // we can't start a filter with no iota, but it'd always be empty anyway 1703 - (img.withStack(_ :+ ListIota(Seq())), cont, HexEvalSounds.THOTH, Seq()) 1703 + (img.withStack(_.dropRight(2) :+ ListIota(Seq())), cont, HexEvalSounds.THOTH, Seq()) 1704 1704 case saved:+(_: ListIota):+filter => throw MishapInvalidIota.ofType(filter, 1, "list") 1705 1705 case saved:+target:+_ => throw MishapInvalidIota.ofType(target, 1, "list") 1706 1706 Patterns.register("extract", nw"dewaqawed"):