Fix builtin resource pack having wrong ID

This commit is contained in:
apple502j 2024-03-18 03:36:32 +00:00 committed by modmuss50
parent 95a137205b
commit df798a89c5
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ public class ModNioResourcePack implements ResourcePack, ModResourcePack {
if (paths.isEmpty()) return null;
String packId = subPath == null ? id : id + "_" + subPath;
String packId = subPath != null && modBundled ? id + "_" + subPath : id;
ModNioResourcePack ret = new ModNioResourcePack(packId, mod, paths, type, activationType, modBundled);
return ret.getNamespaces(type).isEmpty() ? null : ret;

View file

@ -84,7 +84,7 @@ public class SingleVariantItemStorageTests {
tx.commit();
}
// Check custom name.
// Check custom name.It
assertEquals(customName, inv.getStack(0).getName());
assertEquals(FluidVariant.blank(), getFluid(inv.getStack(0)));
assertEquals(0L, getAmount(inv.getStack(0)));