made pack detection more leniant

This commit is contained in:
alexcrea 2025-04-30 16:20:54 +02:00
parent 1ba5d8d38d
commit 5f5339a669
No known key found for this signature in database
GPG key ID: 027DD67D2D3280C5

View file

@ -39,8 +39,10 @@ object DataPackDependency {
for (packName in enabledDatapack) {
// Handling of pack name is horrible: it is based on file name
// So if someone rename a datapack it will make me sad
if(!packName.startsWith("file/")) continue
if (packName.startsWith("file/bp_post_scarcity")) {
if (packName.contains("bp_post_scarcity", ignoreCase = true)
|| packName.contains("bracken", ignoreCase = true)) {
handlePack("bracken")
continue
}