mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-24 16:48:02 -05:00
Fix builtin resource pack having wrong ID
This commit is contained in:
parent
95a137205b
commit
df798a89c5
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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)));
|
||||
|
|
Loading…
Reference in a new issue