Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PneumaticCraft Pressure Conduits #849

Open
wants to merge 2 commits into
base: dev/1.21.1
Choose a base branch
from

Conversation

ferriarnus
Copy link
Member

Description

Pressure conduits for PneumaticCraft.

TODO

  • Textures
  • Tests

Breaking Changes

List any breaking changes in this section, such as: changed/removed APIs, changed or removed items/blocks or modifications to recipes and gameplay mechanics.

Checklist

  • My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you).
  • I have made corresponding changes to the documentation.
  • My changes are ready for review from a contributor.

Copy link
Member

@Rover656 Rover656 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a handful of code style comments. After a quick pass the conduit code looks good and I'll test it in game another day -but- I have a question about the air context. When a conduit graph is split in half, there's going to be no loss of air and they'll both become over-pressure. Is there any way we can make the air drop and balance between the two graphs?

This of course hasn't been done by the energy conduits because they just clamp the storage back down to the capacity - this might be a case where the changes I was going to propose to Graph Lib could come in handy to properly split the resource across the two contexts.

}

if (otherConduit.value() instanceof PressureConduit other) {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you prune this blank space please :)

import java.util.List;

public record PressureConduitStorage(PressureTier tier, ConduitNode node) implements IAirHandlerMachine {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another line here please (auto-formatting PR soon ™️)

@@ -4,7 +4,7 @@ org.gradle.daemon=false

# Minecraft and NeoForge
minecraftVersion=1.21.1
neoForgeVersion=21.1.58
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we bump because .60 is required for Ender IO, or for Pneumaticraft?

}

@Override
public void onConnectTo(ConduitNode selfNode, ConduitNode otherNode) {
FluidConduitData selfData = selfNode.getOrCreateData(ConduitTypes.Data.FLUID.get());
FluidConduitData otherData = otherNode.getOrCreateData(ConduitTypes.Data.FLUID.get());

if (selfData.lockedFluid() != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we lift the fluid conduit fixes into a different PR, currently fluid conduits are completely borked and it'd be good to handle these separately 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants