-
Notifications
You must be signed in to change notification settings - Fork 150
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
[BUG] Does not save pipe buffer #1357
Comments
Looking at the code, the fluid in the pipes is never persisted. This is a simple patch that fixes the immediate problem, by storing the FluidNetTank in the world saved data:
} This fixes the immediate problem for single player and on the server. But the client will always see the wrong amounts in the pipes since there is no mechanism to synchronize the FluidNetTank between the server and client. If the client has TOP like in the above image, they will still see an empty pipe after relogging or unloading chunks, etc. This is still better than what happens now, which is the fluid disappearing into the void when restarting single player or the server. |
Better formatted patch?
|
Accepted based on provided information and current code. @warjort Seems like you already try fixing it. Why don't you create PR with provided code? |
PR seems like a lot of work for a 10 line fix? |
…d in pipes not being persisted (GregTechCE#1357)
Describe the bug
When the server restarted / reloading the world or chunk, the pipe buffer gets empty.
This make it hard for people like me when you are using steam boiler, with two pipes (In: water from pump, Out: steam)
When I reload the world (entering the game), the pipe buffer get empty resulting back-flow of steam where it should be water.
Versions
Forge: forge-14.23.5.2854
GTCE:
Modpack: ArchitPack Greg
Modified:
GTCE Bees
&Greg's Construct
&Shadows of Greg
.GregTech Community Edition
>ce2oc
to the latest version.Setup
Played both, multiplayer and solo.
Steps To Reproduce
Expected behavior
The pipe's buffer should not be empty when reloading the chunks/world.
Screenshots
Before:
After:
The text was updated successfully, but these errors were encountered: