8000 Added getSpawnEstimated() to allow precalculating the estimated spawn by DJshelfmushroom · Pull Request #169 · Cubitect/cubiomes · GitHub
[go: up one dir, main page]

Skip to content

Added getSpawnEstimated() to allow precalculating the estimated spawn - #169

Open
DJshelfmushroom wants to merge 1 commit into
Cubitect:masterfrom
DJshelfmushroom:get-spawn-estimated
Open

DJshelfmushroom wants to merge 1 commit into
Cubitect:masterfrom
DJshelfmushroom:get-spawn-estimated

Conversation

@DJshelfmushroom
Copy link
Copy Markdown

This allows for precalculation of the estimated spawn in longer workflows where one might use the result, and calculating multiple times (manually and then in getSpawn()) adds overhead.
estimateSpawn() now always initializes *rng (to 0 for versions that don't use it), since rng is passed by value to the new function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0