Repository navigation
Don't pre-generate the pattern on wandering trader scrolls - #1363
Robotgiggle wants to merge 9 commits into
Conversation
|
Also, there's no way to select a random element from an |
|
Hmm actually, I could probably just add an overload for |
|
Turns out the mechanism used by In 1.21, we can properly use It's annoying that there's no way to filter registry keys by tag rather than entries, because that would make all of this a lot simpler. Doing a whole chain of method calls to get the |
| AddPerWorldPatternToScrollFunc.doStatic(scroll, rand, self.getServer().overworld()); | ||
| var actionID = IXplatAbstractions.INSTANCE.getActionRegistry().getTag(HexTags.Actions.PER_WORLD_PATTERN) | ||
| .flatMap(set -> set.getRandomElement(rand)).flatMap(Holder::unwrapKey) | ||
| .map(key -> key.location().toString()).orElseThrow(); |
There was a problem hiding this comment.
| .map(key -> key.location().toString()).orElseThrow(); | |
| .map(Identifier::location).orElseThrow().toString(); |
more beautiful :P
Ancient Scroll of <spell>rather thanHow did you get this item of <spell>since packmakers should be able to use other sizes if they want to.