Skip to content

Commit

Permalink
Fix non-creative energy cubes rendering incorrectly in hand after pla…
Browse files Browse the repository at this point in the history
…cing in creative
  • Loading branch information
pupnewfster committed Mar 1, 2024
1 parent 65ba14c commit 69787db
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -39,7 +39,8 @@ public static AttachedSideConfig create(IAttachmentHolder attachmentHolder) {
@Nullable
public static IPersistentConfigInfo getStoredConfigInfo(ItemStack stack, TransmissionType transmissionType) {
return stack.getExistingData(MekanismAttachmentTypes.SIDE_CONFIG)
.map(config -> config.getConfig(transmissionType))
.map(config -> config.configInfo.get(transmissionType))
.filter(config -> !config.sideConfig.isEmpty())
.orElse(null);
}

Expand Down

0 comments on commit 69787db

Please sign in to comment.