add PackNameDecorator to avoid NPE

Forge allows pack hiding, but just in case
This commit is contained in:
octarine-noise
2021-05-29 23:43:14 +02:00
parent 4ebb7f2d35
commit d6038dd072

View File

@@ -59,7 +59,7 @@ class GeneratedTexturePack(
packName, true, Supplier { this@GeneratedTexturePack },
StringTextComponent(packName),
StringTextComponent("Generated block textures resource pack"),
PackCompatibility.COMPATIBLE, ResourcePackInfo.Priority.TOP, true, null, true
PackCompatibility.COMPATIBLE, ResourcePackInfo.Priority.TOP, true, IPackNameDecorator.DEFAULT, true
)
override fun loadPacks(p0: Consumer<ResourcePackInfo>, p1: ResourcePackInfo.IFactory) {