diff --git a/cardinal-components-block/src/main/java/dev/onyxstudios/cca/internal/block/StaticBlockComponentPlugin.java b/cardinal-components-block/src/main/java/dev/onyxstudios/cca/internal/block/StaticBlockComponentPlugin.java index 8f32ebed..6f249d68 100644 --- a/cardinal-components-block/src/main/java/dev/onyxstudios/cca/internal/block/StaticBlockComponentPlugin.java +++ b/cardinal-components-block/src/main/java/dev/onyxstudios/cca/internal/block/StaticBlockComponentPlugin.java @@ -88,8 +88,8 @@ public Class> spinDedicatedFactor while (type != BlockEntity.class) { type = type.getSuperclass().asSubclass(BlockEntity.class); - this.beComponentFactories.getOrDefault(entityClass, Collections.emptyMap()).forEach(compiled::putIfAbsent); - this.beComponentImpls.getOrDefault(entityClass, Collections.emptyMap()).forEach(compiledImpls::putIfAbsent); + this.beComponentFactories.getOrDefault(type, Collections.emptyMap()).forEach(compiled::putIfAbsent); + this.beComponentImpls.getOrDefault(type, Collections.emptyMap()).forEach(compiledImpls::putIfAbsent); } String implSuffix = getSuffix(entityClass); diff --git a/changelog.md b/changelog.md index 04a2f9df..860dc1a3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,8 @@ +------------------------------------------------------ +Version 2.7.2 +------------------------------------------------------ +- Fixed components attached to a block entity not stacking with the superclass' components + ------------------------------------------------------ Version 2.7.1 ------------------------------------------------------ diff --git a/gradle.properties b/gradle.properties index 7ab7f906..73b55649 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ loader_version=0.10.2+build.210 fabric_api_version=0.21.0+build.407-1.16 #Publishing -mod_version = 2.7.1 +mod_version = 2.7.2 curseforge_id = 318449 curseforge_versions = 1.16.2; 1.16.3 changelog_url = https://github.com/OnyxStudios/Cardinal-Components-API/blob/master/changelog.md