24w35a
This commit is contained in:
1 parent
7ee1baab2c
commit
5e89cc6ddb
23 files changed
+80
-80
No files matched your search
@@ -279,11 +279,11 @@ public class CarpetProfiler
|
||||
final RegistryAccess regs = section.getKey().registryAccess();
|
||||
if (section.getValue() instanceof EntityType)
|
||||
{
|
||||
id = regs.registryOrThrow(Registries.ENTITY_TYPE).getKey((EntityType<?>) section.getValue());
|
||||
id = regs.lookupOrThrow(Registries.ENTITY_TYPE).getKey((EntityType<?>) section.getValue());
|
||||
}
|
||||
else
|
||||
{
|
||||
id = regs.registryOrThrow(Registries.BLOCK_ENTITY_TYPE).getKey((BlockEntityType<?>) section.getValue());
|
||||
id = regs.lookupOrThrow(Registries.BLOCK_ENTITY_TYPE).getKey((BlockEntityType<?>) section.getValue());
|
||||
}
|
||||
String name = "minecraft".equals(id.getNamespace())?id.getPath():id.toString();
|
||||
if (section.getKey().isClientSide)
|
||||
|
||||
Reference in new issue
Block a user