-
Notifications
You must be signed in to change notification settings - Fork 310
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
Add Pipe Swapping functionality #3836
base: master
Are you sure you want to change the base?
Conversation
src/main/java/gregtech/api/metatileentity/implementations/MTEFluid.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other note: When swapping a pipe, all stored fluid is lost. I think it should at least transfer what it "can" fit, if not some other more creative solution to prevent voiding fluid accidentally
if (message.length() > 0) { | ||
GTUtility.sendChatToPlayer( | ||
aPlayer, | ||
StatCollector.translateToLocal("GT5U.item.pipe.swap") + message.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StatCollector.translateToLocal("GT5U.item.pipe.swap") + message.toString()); | |
StatCollector.translateToLocal("GT5U.item.pipe.swap") + " " + message.toString()); |
// Preserve connections | ||
newPipe.mConnections = oldConnections; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to transfer over mDisableInput
here so that the directional flow settings are preserved
Add the same functionality discussed here but for pipes : #3826
-Feature: Swap different pipes with ctrl+rightclick