Don't inject names when there's no other devices.

This commit is contained in:
Florian Nücke
2022-02-06 21:38:25 +01:00
parent d8dc608e89
commit bf4425902d

View File

@@ -86,6 +86,10 @@ public abstract class AbstractItemDeviceBusElement extends AbstractGroupingDevic
}
protected void collectSyntheticDevices(final ItemDeviceQuery query, final HashSet<ItemEntry> entries) {
if (entries.isEmpty()) {
return;
}
final ResourceLocation registryName = query.getItemStack().getItem().getRegistryName();
if (registryName != null) {
final String itemName = registryName.toString();