Skip to content

[1.19.2/1.21.1] Deposits can't accept Max Y Value below 0. #224

@Kanzaji

Description

@Kanzaji

Issue description

https://github.com/Ridanisaurus/EmendatusEnigmatica/blob/EEV2-1.19/src/main/java/com/ridanisaurus/emendatusenigmatica/world/gen/feature/SphereOreFeature.java#L67

Random method doesn't accept negative values as an input, causing a crash on generation.

Steps to reproduce

  1. Set Y Max value in a deposit to a negative value.
  2. Set a chance high (For easier reproduction)
  3. Create a world.

Minecraft version

1.19.2 (Latest)

Forge version

Doesn't affect the result.

Emendatus Enigmatica version

Current Dev Branch (Manually Compiled)

Other relevant versions

No response

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

https://canary.discord.com/channels/1108377598427406396/1108377599501152300/1327813862946508840

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.19.2Affects 1.19.2 version of the mod.bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions