diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MRegistry.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MRegistry.kt index 7bb4a8a19..e53a262a6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MRegistry.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/registry/MRegistry.kt @@ -406,8 +406,10 @@ object MRegistry : IBlockItemRegistryAcceptor { } private fun registerItemDecorators(event: RegisterItemDecorationsEvent) { - ForgeRegistries.ITEMS.filterIsInstance().forEach { - event.register(it, MatteryGUI::renderShieldCooldownOverlay) + ForgeRegistries.ITEMS.forEach { + if (it is ShieldItem) { + event.register(it, MatteryGUI::renderShieldCooldownOverlay) + } } } }