-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Corruption Bug #68
Comments
Heya, Do you think replacing it with |
Hey, Just use the random provided by the worldgenerator. You can even reset it yourself if you want to. But its already initialized with the seed. |
Yeah I noticed that just now, haha (porting to 1.16.5). No need for the field at all.
Get BlueMail for Android
…On 5 Jun 2021, 22:54, at 22:54, Speiger ***@***.***> wrote:
Hey,
Just use the random provided by the worldgenerator. You can even reset
it yourself if you want to. But its already initialized with the seed.
https://github.com/alcatrazEscapee/ore-veins/blob/1.15.x/src/main/java/com/alcatrazescapee/oreveins/world/VeinsFeature.java#L77
(Random Argument)
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#68 (comment)
|
Especially since i found a way to multithread worldgeneration truely and this mod would BREAK instantly |
https://github.com/alcatrazEscapee/ore-veins/blob/1.15.x/src/main/java/com/alcatrazescapee/oreveins/world/VeinsFeature.java#L35
This random needs not to stay inside of the class have a unique random per function call.
Because the code is actually executed in a "Multithreaded" manner. Multiple Chunks could call this function at the exact same time, meaning if they do that you corrupt your random and get really really really really bad results.
The text was updated successfully, but these errors were encountered: