mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 19:49:54 +00:00
Make TankManager gui handling match the old code properly
This commit is contained in:
1 parent
9275784a5a
commit
4b8e651a89
1 file changed
+2
-2
@@ -234,12 +234,12 @@ public class TankManager extends ForwardingList<StandardTank> implements IFluidH
|
||||
|
||||
switch (messageId % NETWORK_DATA) {
|
||||
case 0: {
|
||||
int amount = tank.getFluidAmount();
|
||||
Fluid fluid = FluidRegistry.getFluid(data);
|
||||
if (fluid != null) {
|
||||
FluidStack fluidStack = new FluidStack(fluid, amount);
|
||||
FluidStack fluidStack = new FluidStack(fluid, 0);
|
||||
tank.setFluid(fluidStack);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
FluidStack fluidStack = tank.getFluid();
|
||||
|
||||
Reference in new issue
Block a user