fluid containers can now be drained/filled from fluid interfaces

This commit is contained in:
PrototypeTrousers
2021-08-04 19:38:00 -03:00
parent 1d5465a4b8
commit e96b4a698a
6 changed files with 229 additions and 25 deletions
@@ -19,6 +19,7 @@
package appeng.core.sync.packets;
import appeng.fluids.container.ContainerFluidInterface;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
@@ -90,5 +91,9 @@ public class PacketTargetFluidStack extends AppEngPacket
{
( (ContainerFluidTerminal) player.openContainer ).setTargetStack( this.stack );
}
else if( player.openContainer instanceof ContainerFluidInterface )
{
( (ContainerFluidInterface) player.openContainer ).setTargetStack( this.stack );
}
}
}