Globox1997 / LevelZ

https://modrinth.com/mod/levelz
https://www.curseforge.com/minecraft/mc-mods/levelz
GNU General Public License v3.0
50 stars 49 forks source link

[Bug] Force replace because of filename #132

Open TheNooBest opened 2 years ago

TheNooBest commented 2 years ago

This bug appears on creating a custom datapack. If I want to create mining restrictions for any mod, I need to create file like this:

/data/levelz/mining/restrictions_for_level_5.json

{
    "replace": false,
    "level": 5,
    "block": [
        "ae2:quartz_ore"
    ]
}

And i will get mining list like this one: image

But if I will name file like it named inside source code /data/levelz/mining/level_5.json Mining list will be like following: image

Expexted behavior: Constraint does not depends on file naming

Globox1997 commented 2 years ago

Added an info line to the readme https://github.com/Globox1997/LevelZ/commit/b85ea44df017dc8e7ca5c7bcd5961114e722a901