Skip to content

Commit

Permalink
Fix block entity components not stacking
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Oct 22, 2020
1 parent 65a99db commit ca2f896
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public Class<? extends DynamicContainerFactory<BlockEntity>> 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);
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca2f896

Please sign in to comment.